Home
last modified time | relevance | path

Searched refs:diag_len (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/linalg/
Dmatrix_diag_op.cc323 const int diag_len = std::min(num_rows + std::min(0, diag_index), in ComputeDiagLenAndContentOffset() local
325 const int content_offset = (left_align) ? 0 : (max_diag_len - diag_len); in ComputeDiagLenAndContentOffset()
326 return {diag_len, content_offset}; in ComputeDiagLenAndContentOffset()
359 int diag_len, content_offset; in Compute() local
360 std::tie(diag_len, content_offset) = ComputeDiagLenAndContentOffset( in Compute()
415 int diag_len, content_offset; in Compute() local
416 std::tie(diag_len, content_offset) = ComputeDiagLenAndContentOffset( in Compute()
421 for (Eigen::Index n = 0; n < diag_len; ++n) { in Compute()
428 const Eigen::Index padding_start = (left_align) ? diag_len : 0; in Compute()
Dmatrix_set_diag_op.cc227 int diag_len, content_offset; in Compute() local
228 std::tie(diag_len, content_offset) = ComputeDiagLenAndContentOffset( in Compute()
234 for (Eigen::Index n = 0; n < diag_len; ++n) { in Compute()
239 for (Eigen::Index n = 0; n < diag_len; ++n) { in Compute()
Dmatrix_set_diag_op_gpu.cu.cc41 const int diag_len = min(num_rows + y_offset, num_cols - x_offset); in ComputeContentOffset() local
42 return max_diag_len - diag_len; in ComputeContentOffset()
Dmatrix_diag_op_gpu.cu.cc40 const int diag_len = min(num_rows + y_offset, num_cols - x_offset); in ComputeContentOffset() local
41 return max_diag_len - diag_len; in ComputeContentOffset()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_MatrixDiagPartV3.pbtxt72 offset = max_diag_len - diag_len(d) ; if (`align` in {RIGHT_LEFT, RIGHT_RIGHT}
78 where `diag_len(d) = min(cols - max(d, 0), rows + min(d, 0))`.
Dapi_def_MatrixSetDiagV3.pbtxt75 offset = max_diag_len - diag_len(d) ; if (`align` in {RIGHT_LEFT, RIGHT_RIGHT}
81 where `diag_len(d) = min(cols - max(d, 0), rows + min(d, 0))`.
Dapi_def_MatrixDiagV3.pbtxt96 offset = max_diag_len - diag_len(d) ; if (`align` in {RIGHT_LEFT, RIGHT_RIGHT}
102 where `diag_len(d) = min(cols - max(d, 0), rows + min(d, 0))`.
/external/tensorflow/tensorflow/compiler/tests/
Dmatrix_diag_ops_test.py58 diag_len = min(num_rows + min(0, diag_index), num_cols - max(0, diag_index))
60 padding_len = max_diag_len - diag_len
66 packed_last_dim = (slice(None),) if left_align else (slice(0, diag_len, 1),)
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dmatrix.cc128 const int64 diag_len = in GetMatrixDiagonalViaGather() local
130 XlaOp diag_base_indices = BroadcastInDim(Iota(builder, S32, diag_len), in GetMatrixDiagonalViaGather()
131 {diag_len, num_index_dims}, {0}); in GetMatrixDiagonalViaGather()
134 {diag_len}); in GetMatrixDiagonalViaGather()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dmatrix_diag_ops.cc413 const int64 diag_len = ComputeDiagLen(diag_index, num_rows, num_cols); in Compile() local
414 const int64 padding_len = max_diag_len - diag_len; in Compile()
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_array_ops.py112 diag_len = min(N, M)
115 diag_len -= k
117 diag_len = M - k
120 diag_len += k
122 diag_len = N + k
123 diagonal_ = array_ops.ones([diag_len], dtype=dtype)
/external/eigen/blas/f2c/
Dstbmv.c17 uplo_len, ftnlen trans_len, ftnlen diag_len) in stbmv_() argument
Ddtbmv.c17 ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len) in dtbmv_() argument
Dztbmv.c17 *incx, ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len) in ztbmv_() argument
Dctbmv.c17 ftnlen uplo_len, ftnlen trans_len, ftnlen diag_len) in ctbmv_() argument
/external/tensorflow/tensorflow/python/kernel_tests/
Ddiag_op_test.py63 diag_len = min(num_rows + min(0, diag_index), num_cols - max(0, diag_index))
65 padding_len = max_diag_len - diag_len
71 packed_last_dim = (slice(None),) if left_align else (slice(0, diag_len, 1),)
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_generated_ops.td7275 offset = max_diag_len - diag_len(d) ; if (`align` in {RIGHT_LEFT, RIGHT_RIGHT}
7281 where `diag_len(d) = min(cols - max(d, 0), rows + min(d, 0))`.
7524 offset = max_diag_len - diag_len(d) ; if (`align` in {RIGHT_LEFT, RIGHT_RIGHT}
7530 where `diag_len(d) = min(cols - max(d, 0), rows + min(d, 0))`.
7835 offset = max_diag_len - diag_len(d) ; if (`align` in {RIGHT_LEFT, RIGHT_RIGHT}
7841 where `diag_len(d) = min(cols - max(d, 0), rows + min(d, 0))`.