Home
last modified time | relevance | path

Searched refs:indices_dims (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/fuzzing/
Dscatter_nd_fuzz.cc82 std::vector<int64> indices_dims; in FuzzImpl() local
88 indices_dims.push_back(dim); in FuzzImpl()
90 Tensor indices_tensor(tensorflow::DT_INT32, TensorShape(indices_dims)); in FuzzImpl()
106 updates_dims.push_back(indices_dims[i]); in FuzzImpl()
107 num_indices *= indices_dims[i]; in FuzzImpl()
109 int64 last = indices_dims[indices_rank - 1]; in FuzzImpl()
/external/tensorflow/tensorflow/compiler/tf2xla/lib/
Dscatter.cc42 absl::Span<const int64> indices_dims = in XlaScatter() local
49 TF_RET_CHECK(!indices_dims.empty()); in XlaScatter()
50 num_index_dims = indices_dims.back(); in XlaScatter()
58 indices_dims.remove_suffix(1); in XlaScatter()
62 for (int64 dim : indices_dims) { in XlaScatter()
150 std::vector<int64> expected_updates_dims(indices_dims.begin(), in XlaScatter()
151 indices_dims.end()); in XlaScatter()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Done_hot_op.cc38 const int indices_dims = indices_shape.dims(); in Compile() local
39 const int output_dims = indices_dims + 1; in Compile()
56 const int axis = (axis_ == -1) ? indices_dims : axis_; in Compile()
/external/tensorflow/tensorflow/core/kernels/
Done_hot_op.cc57 const int indices_dims = indices_shape.dims(); in Compute() local
58 const int output_dims = indices_dims + 1; in Compute()
75 const int axis = (axis_ == -1) ? indices_dims : axis_; in Compute()
/external/tensorflow/tensorflow/lite/kernels/
Done_hot.cc45 const int indices_dims = indices->dims->size; in OneHotContext() local
46 axis = (params->axis == -1) ? indices_dims : params->axis; in OneHotContext()
47 output_dims = indices_dims + 1; in OneHotContext()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dpropagate_fixed_sizes.cc1958 const int indices_dims = indices_array.shape().dimensions_count(); in ProcessOneHotOperator() local
1959 const int output_dims = indices_dims + 1; in ProcessOneHotOperator()
1960 const int axis = op->axis == -1 ? indices_dims : op->axis; in ProcessOneHotOperator()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dconvert_nodes_test.cc3438 std::vector<int> indices_dims; in TestConvertGather() member
3471 test->AddTestTensor("indices", ok_params[i].indices_dims, 1, in TestConvertGather()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dreference_ops.h2982 const int indices_dims = indices_shape.DimensionsCount(); in GatherNd() local
2983 const int indices_nd = indices_shape.Dims(indices_dims - 1); in GatherNd()
2985 for (int i = 0; i < indices_dims - 1; ++i) { in GatherNd()