Home
last modified time | relevance | path

Searched refs:a_indices (Results 1 – 25 of 40) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dsparse_add_grad_op.cc32 const Tensor *backprop_val_grad, *a_indices, *b_indices, *sum_indices; in Compute() local
34 OP_REQUIRES_OK(ctx, ctx->input("a_indices", &a_indices)); in Compute()
39 TensorShapeUtils::IsMatrix(a_indices->shape()) && in Compute()
44 a_indices->shape().DebugString(), " and ", in Compute()
54 a_indices->dim_size(1) == b_indices->dim_size(1) && in Compute()
58 a_indices->dim_size(1), b_indices->dim_size(1), in Compute()
67 const int num_dims = a_indices->dim_size(1); in Compute()
68 const int64 a_nnz = a_indices->dim_size(0); in Compute()
72 const auto a_indices_mat = a_indices->matrix<int64>(); in Compute()
Dsparse_tensor_dense_matmul_op.cc43 const Tensor* a_indices; in Compute() local
47 OP_REQUIRES_OK(ctx, ctx->input("a_indices", &a_indices)); in Compute()
66 OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(a_indices->shape()), in Compute()
69 const int64 nnz = a_indices->shape().dim_size(0); in Compute()
75 ctx, a_indices->shape().dim_size(1) == a_shape->NumElements(), in Compute()
141 a_indices->matrix<Tindices>(), a_values->vec<T>(), \ in Compute()
187 TTypes<Tindices>::ConstMatrix a_indices, \
250 typename TTypes<Tindices>::ConstMatrix a_indices, in Compute()
270 const Tindices m = internal::SubtleMustCopy(a_indices(i, lhs_index_a)); in Compute()
271 const Tindices k = internal::SubtleMustCopy(a_indices(i, rhs_index_a)); in Compute()
[all …]
Dsparse_tensor_dense_matmul_op_gpu.cu.cc32 const Tindices* __restrict__ a_indices, const T* __restrict__ a_values, in SparseTensorDenseMatMulKernel() argument
40 const int i = ldg(a_indices + 2 * a_ix + ((ADJ_A) ? 1 : 0)); in SparseTensorDenseMatMulKernel()
41 const int k = ldg(a_indices + 2 * a_ix + ((ADJ_A) ? 0 : 1)); in SparseTensorDenseMatMulKernel()
67 typename TTypes<Tindices>::ConstMatrix a_indices, in Compute()
85 b_rows, b_cols, p, a_indices.data(), a_values.data(), b.data(), in Compute()
Dsparse_tensor_dense_matmul_op_test.cc26 Node* SparseTensorDenseMatMulNode(Graph* g, Node* a_indices, Node* a_values, in SparseTensorDenseMatMulNode() argument
31 .Input(a_indices) in SparseTensorDenseMatMulNode()
46 Tensor a_indices(DT_INT64, TensorShape({nnz, 2})); in SparseTensorDenseMatmul() local
52 auto a_indices_t = a_indices.matrix<int64>(); in SparseTensorDenseMatmul()
65 g, test::graph::Constant(g, a_indices), in SparseTensorDenseMatmul()
Dsparse_add_op.cc32 const Tensor *a_indices, *b_indices, *a_values_t, *b_values_t, *a_shape, in Compute() local
35 OP_REQUIRES_OK(ctx, ctx->input("a_indices", &a_indices)); in Compute()
38 TensorShapeUtils::IsMatrix(a_indices->shape()) && in Compute()
42 a_indices->shape().DebugString(), " and ", in Compute()
44 const int64 a_nnz = a_indices->dim_size(0); in Compute()
97 auto a_indices_mat = a_indices->matrix<int64>(); in Compute()
Dsparse_tensor_dense_add_op.cc35 Status ValidateInputs(const Tensor *a_indices, const Tensor *a_values, in ValidateInputs() argument
37 if (!TensorShapeUtils::IsMatrix(a_indices->shape())) { in ValidateInputs()
40 a_indices->shape().DebugString()); in ValidateInputs()
/external/tensorflow/tensorflow/python/ops/
Dsparse_grad.py84 a_indices = op.inputs[0]
92 val_grad, a_indices, b_indices, sum_indices)
166 a_indices, a_values, a_shape = op.inputs[:3]
182 a_indices, a_values, a_shape, grad, adjoint_a=not adj_a)
187 rows = a_indices[:, 0]
188 cols = a_indices[:, 1]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_SparseSparseMinimum.pbtxt4 name: "a_indices"
13 1-D. `N` non-empty values corresponding to `a_indices`.
25 counterpart to `a_indices` for the other operand.
Dapi_def_SparseSparseMaximum.pbtxt4 name: "a_indices"
13 1-D. `N` non-empty values corresponding to `a_indices`.
25 counterpart to `a_indices` for the other operand.
Dapi_def_SparseTensorDenseAdd.pbtxt4 name: "a_indices"
29 This Op does not require `a_indices` be sorted in standard lexicographic order.
Dapi_def_SparseMatrixOrderingAMD.pbtxt42 a_indices = np.array([[0, 0], [1, 1], [2, 1], [2, 2], [3, 3]])
48 a_st = tf.sparse.SparseTensor(a_indices, a_values, a_dense_shape)
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DSparseSparseMaximum.pbtxt4 name: "a_indices"
56 name: "a_indices"
110 name: "a_indices"
165 name: "a_indices"
DSparseAddGrad.pbtxt8 name: "a_indices"
57 name: "a_indices"
108 name: "a_indices"
160 name: "a_indices"
DSparseTensorDenseAdd.pbtxt4 name: "a_indices"
59 name: "a_indices"
116 name: "a_indices"
174 name: "a_indices"
DSparseSparseMinimum.pbtxt4 name: "a_indices"
61 name: "a_indices"
120 name: "a_indices"
180 name: "a_indices"
DSparseTensorDenseMatMul.pbtxt4 name: "a_indices"
45 name: "a_indices"
DSparseAdd.pbtxt4 name: "a_indices"
86 name: "a_indices"
172 name: "a_indices"
260 name: "a_indices"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DSparseSparseMaximum.pbtxt4 name: "a_indices"
56 name: "a_indices"
110 name: "a_indices"
165 name: "a_indices"
DSparseAddGrad.pbtxt8 name: "a_indices"
57 name: "a_indices"
108 name: "a_indices"
160 name: "a_indices"
DSparseTensorDenseAdd.pbtxt4 name: "a_indices"
59 name: "a_indices"
116 name: "a_indices"
174 name: "a_indices"
DSparseSparseMinimum.pbtxt4 name: "a_indices"
61 name: "a_indices"
120 name: "a_indices"
180 name: "a_indices"
DSparseTensorDenseMatMul.pbtxt4 name: "a_indices"
45 name: "a_indices"
DSparseAdd.pbtxt4 name: "a_indices"
86 name: "a_indices"
172 name: "a_indices"
260 name: "a_indices"
/external/tensorflow/tensorflow/python/kernel_tests/linalg/sparse/
Dcsr_sparse_matrix_ops_test.py107 a_indices = np.array([[0, 0], [2, 3]])
111 (a_indices[:, 0], a_indices[:, 1])),
142 a_indices = np.array([[0, 0], [2, 3], [2, 4], [3, 0]])
146 (a_indices[:, 0], a_indices[:, 1])),
151 a_st = sparse_tensor.SparseTensor(a_indices, a_values, a_dense_shape)
173 self.assertAllEqual(a_indices, a_st_rt_value.indices)
207 a_indices = np.array([[0, 0, 0], [0, 2, 3], [2, 0, 1]])
219 a_st = sparse_tensor.SparseTensor(a_indices, a_values, a_dense_shape)
243 self.assertAllEqual(a_indices, a_st_rt_value.indices)
309 a_indices = np.array([[0, 0], [2, 3], [2, 4], [3, 0]])
[all …]
Dcsr_sparse_matrix_test.py44 a_indices = np.array([[0, 0], [2, 3], [2, 4], [3, 0]])
48 a_st = sparse_tensor.SparseTensor(a_indices, a_values, a_dense_shape)
56 self.assertAllEqual(a_indices, a_st_rt.indices)

12