Home
last modified time | relevance | path

Searched refs:indices_t (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dsparse_softmax_op.cc43 const Tensor *indices_t, *values_t, *shape_t; in Compute() local
44 OP_REQUIRES_OK(context, context->input("sp_indices", &indices_t)); in Compute()
49 OP_REQUIRES(context, TensorShapeUtils::IsMatrix(indices_t->shape()), in Compute()
52 indices_t->shape().DebugString())); in Compute()
66 indices_t->dim_size(0) < std::numeric_limits<int>::max(), in Compute()
70 const int nnz = static_cast<int>(indices_t->dim_size(0)); in Compute()
71 const int rank = static_cast<int>(indices_t->dim_size(1)); in Compute()
75 tensor::DeepCopy(*indices_t), tensor::DeepCopy(*values_t), in Compute()
Dsparse_dense_binary_op_shared.cc62 const Tensor *indices_t, *values_t, *shape_t, *dense_t; in Compute() local
63 OP_REQUIRES_OK(ctx, ctx->input("sp_indices", &indices_t)); in Compute()
69 OP_REQUIRES(ctx, TensorShapeUtils::IsMatrix(indices_t->shape()), in Compute()
72 indices_t->shape().DebugString())); in Compute()
82 const auto indices_mat = indices_t->matrix<int64>(); in Compute()
106 const int64 nnz = indices_t->dim_size(0); in Compute()
Dsparse_fill_empty_rows_op.cc43 const Tensor* indices_t; in Compute() local
47 OP_REQUIRES_OK(context, context->input("indices", &indices_t)); in Compute()
57 OP_REQUIRES(context, TensorShapeUtils::IsMatrix(indices_t->shape()), in Compute()
59 indices_t->shape().DebugString())); in Compute()
71 const auto indices = indices_t->matrix<int64>(); in Compute()
75 const int64 N = indices_t->shape().dim_size(0); in Compute()
89 int rank = indices_t->shape().dim_size(1); in Compute()
Dsparse_reduce_op.cc161 const Tensor *indices_t, *values_t, *shape_t, *reduction_axes_t; in Compute() local
162 OP_REQUIRES_OK(ctx, ctx->input("input_indices", &indices_t)); in Compute()
177 tensor::DeepCopy(*indices_t), tensor::DeepCopy(*values_t), in Compute()
257 const Tensor *indices_t, *values_t, *shape_t, *reduction_axes_t; in Compute() local
258 OP_REQUIRES_OK(ctx, ctx->input("input_indices", &indices_t)); in Compute()
266 OP_REQUIRES_OK(ctx, SparseTensor::Create(tensor::DeepCopy(*indices_t), in Compute()
Done_hot_op.cc109 auto indices_t = in Compute() local
117 indices_t, on_value_t, in Compute()
Dctc_decoder_ops.cc144 auto indices_t = p_indices->matrix<int64>(); in StoreAllDecodedSequences() local
157 indices_t(offset, 0) = b; in StoreAllDecodedSequences()
158 indices_t(offset, 1) = t; in StoreAllDecodedSequences()
Dtensor_array_ops.cc633 const auto indices_t = tensor_indices->vec<int32>(); in Compute() local
636 std::copy(indices_t.data(), indices_t.data() + num_indices, in Compute()
1087 const auto indices_t = tensor_indices->vec<int32>(); in Compute() local
1091 : *std::max_element(indices_t.data(), in Compute()
1092 indices_t.data() + num_values); in Compute()
1095 std::copy(indices_t.data(), indices_t.data() + num_values, in Compute()
Dexample_parsing_ops.cc692 auto indices_t = sp_indices_d->matrix<int64>(); in Compute() local
693 std::iota(indices_t.data(), indices_t.data() + num_elements, 0); in Compute()
/external/tensorflow/tensorflow/python/ops/
Dsparse_ops_test.py75 indices_t = constant_op.constant(indices)
78 indices=indices_t, values=values_t, dense_shape=dense_shape_t)
/external/tensorflow/tensorflow/core/ops/
Ddata_flow_ops.cc99 const Tensor* indices_t = c->input_tensor(i); in DynamicStitchShapeFunction() local
100 if (indices_t == nullptr) { in DynamicStitchShapeFunction()
121 if (indices_t != nullptr) { in DynamicStitchShapeFunction()
123 const int32* indices = indices_t->flat<int32>().data(); in DynamicStitchShapeFunction()
124 int64 count = indices_t->NumElements(); in DynamicStitchShapeFunction()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding_test.cc2873 Tensor indices_t(DT_INT32, TensorShape({2})); in TEST_F() local
2874 indices_t.flat<int>()(0) = 0; in TEST_F()
2875 indices_t.flat<int>()(1) = 1; in TEST_F()
2877 item.graph, item.fetch, {{"input", input_t}, {"indices", indices_t}}); in TEST_F()
2912 {{"input", input_t}, {"indices", indices_t}}); in TEST_F()