Home
last modified time | relevance | path

Searched refs:num_diags (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/linalg/
Dmatrix_set_diag_op_gpu.cu.cc47 const int num_threads, const int m, const int n, const int num_diags, in MatrixSetDiagKernel() argument
54 const int batch = batch_and_diag_index / num_diags; in MatrixSetDiagKernel()
55 const int diag_index_in_input = batch_and_diag_index - batch * num_diags; in MatrixSetDiagKernel()
73 const int num_threads, const int m, const int n, const int num_diags, in MatrixCopyInputAndSetDiagKernel() argument
91 diag_ptr[batch * num_diags * max_diag_len + in MatrixCopyInputAndSetDiagKernel()
113 const int num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
118 GetGpuLaunchConfig(batch_size * num_diags * max_diag_len, device); in Compute()
122 config.virtual_thread_count, m, n, num_diags, max_diag_len, in Compute()
130 config.virtual_thread_count, m, n, num_diags, max_diag_len, in Compute()
Dmatrix_diag_op_gpu.cu.cc47 const int num_diags, const int max_diag_len, const int lower_diag_index, in MatrixDiagKernel() argument
64 diag_ptr[batch * num_diags * max_diag_len + in MatrixDiagKernel()
85 const int num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
95 num_diags, max_diag_len, lower_diag_index, upper_diag_index, in Compute()
104 const int num_diags, const int max_diag_len, const int lower_diag_index, in MatrixDiagPartKernel() argument
112 const int batch = batch_and_mapped_diag_index / num_diags; in MatrixDiagPartKernel()
114 batch_and_mapped_diag_index - batch * num_diags; in MatrixDiagPartKernel()
146 const int num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
152 GetGpuLaunchConfig(batch_size * num_diags * max_diag_len, device); in Compute()
156 num_diags, max_diag_len, lower_diag_index, upper_diag_index, in Compute()
Dmatrix_set_diag_op.cc125 const Eigen::Index num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
129 (diag_shape.dim_size(input_rank - 2) == num_diags), in Compute()
136 if (num_diags > 1) expected_diag_shape.AddDim(num_diags); in Compute()
216 const Eigen::Index num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
218 &num_diags, &left_align_superdiagonal, in Compute()
223 Eigen::Index diag_base_index = begin * num_diags * max_diag_len; in Compute()
225 for (Eigen::Index m = 0; m < num_diags; ++m) { in Compute()
251 const Eigen::Index cost_per_batch = 10 * num_diags * max_diag_len; in Compute()
Dmatrix_diag_op.cc126 const Eigen::Index num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
127 if (num_diags > 1) output_shape.AddDim(num_diags); in Compute()
203 const Eigen::Index num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
215 diagonal_shape.dim_size(diag_rank - 2) == num_diags, in Compute()
244 if (num_diags == 1) { // Output has rank `rank+1`. in Compute()
351 const int num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
352 const int diag_elements_in_batch = num_diags * max_diag_len; in Compute()
397 const Eigen::Index num_diags = upper_diag_index - lower_diag_index + 1; in Compute() local
398 const Eigen::Index output_elements_in_batch = num_diags * max_diag_len; in Compute()
405 &upper_diag_index, &max_diag_len, &num_diags, in Compute()
[all …]
Dtridiagonal_solve_op.cc56 auto num_diags = input_matrix_shapes[0].dim_size(0); in ValidateInputMatrixShapes() local
58 context, num_diags == 3, in ValidateInputMatrixShapes()
61 num_diags, " rows.")); in ValidateInputMatrixShapes()
Dtridiagonal_solve_op_gpu.cu.cc113 auto num_diags = input_matrix_shapes[0].dim_size(0); in ValidateInputMatrixShapes() local
115 context, num_diags == 3, in ValidateInputMatrixShapes()
118 num_diags, " columns.")); in ValidateInputMatrixShapes()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dmatrix_diag_ops.cc119 const int64 num_diags, const int64 lower_diag_index, in SetMatrixDiag() argument
165 if (num_diags > 1) { in SetMatrixDiag()
275 const int64 num_diags = upper_diag_index - lower_diag_index + 1; in Compile() local
278 num_diags == 1 || num_diags == diag_shape.dim_size(diag_rank - 2), in Compile()
312 output_shape.RemoveLastDims((num_diags == 1) ? 1 : 2); in Compile()
318 0, SetMatrixDiag(output, diag, output_shape, diag_rank, num_diags, in Compile()
390 const int num_diags = upper_diag_index - lower_diag_index + 1; in Compile() local
391 if (num_diags > 1) output_shape.AddDim(num_diags); in Compile()
402 if (num_diags == 1) { in Compile()
495 const Eigen::Index num_diags = upper_diag_index - lower_diag_index + 1; in Compile() local
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_MatrixDiagPartV2.pbtxt35 Let `num_diags` be the number of diagonals to extract,
36 `num_diags = k[1] - k[0] + 1`.
38 If `num_diags == 1`, the output tensor is of rank `r - 1` with shape
49 `[I, J, ..., L, num_diags, max_diag_len]` with values:
Dapi_def_MatrixDiagPartV3.pbtxt47 Let `num_diags` be the number of diagonals to extract,
48 `num_diags = k[1] - k[0] + 1`.
50 If `num_diags == 1`, the output tensor is of rank `r - 1` with shape
61 `[I, J, ..., L, num_diags, max_diag_len]` with values:
Dapi_def_MatrixSetDiagV2.pbtxt37 Otherwise, it has `r+1` dimensions `[I, J, ..., L, num_diags, max_diag_len]`.
38 `num_diags` is the number of diagonals, `num_diags = k[1] - k[0] + 1`.
Dapi_def_MatrixSetDiagV3.pbtxt49 Otherwise, it has `r+1` dimensions `[I, J, ..., L, num_diags, max_diag_len]`.
50 `num_diags` is the number of diagonals, `num_diags = k[1] - k[0] + 1`.
/external/tensorflow/tensorflow/python/kernel_tests/
Ddiag_op_test.py747 num_diags = upper_diag_index - lower_diag_index + 1
748 num_diags_dim = () if num_diags == 1 else (num_diags,)
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangExpressionParser.cpp1262 size_t num_diags = diagnostics.size(); in RewriteExpression() local
1263 if (num_diags == 0) in RewriteExpression()
/external/tensorflow/tensorflow/core/framework/
Dcommon_shape_fns.cc1350 const int32 num_diags = c->Value(c->Dim(input_shape, input_rank - 2)); in MatrixDiagV2Shape() local
1353 if (num_diags != (upper_diag_index - lower_diag_index + 1)) { in MatrixDiagV2Shape()
1357 "num_diags = ", num_diags, ", d_lower = ", lower_diag_index, in MatrixDiagV2Shape()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf.cc1515 int num_diags = k[1] - k[0] + 1; in matchAndRewrite() local
1526 Shape indices_shape({1, num_diags, max_diag_len}); in matchAndRewrite()
1609 RankedTensorType::get(Shape({num_diags, max_diag_len}), in matchAndRewrite()
1614 Shape concat_shape({2, num_diags, max_diag_len}); in matchAndRewrite()
1626 output_shape.push_back(num_diags); in matchAndRewrite()
1676 if (num_diags == 1) { in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_generated_ops.td7250 Let `num_diags` be the number of diagonals to extract,
7251 `num_diags = k[1] - k[0] + 1`.
7253 If `num_diags == 1`, the output tensor is of rank `r - 1` with shape
7264 `[I, J, ..., L, num_diags, max_diag_len]` with values:
7711 Otherwise, it has `r+1` dimensions `[I, J, ..., L, num_diags, max_diag_len]`.
7712 `num_diags` is the number of diagonals, `num_diags = k[1] - k[0] + 1`.
7809 Otherwise, it has `r+1` dimensions `[I, J, ..., L, num_diags, max_diag_len]`.
7810 `num_diags` is the number of diagonals, `num_diags = k[1] - k[0] + 1`.