Home
last modified time | relevance | path

Searched refs:begin_tensor (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/core/util/
Dstrided_slice_op.cc35 const Tensor* begin_tensor; member
96 dense->begin_valid = sparse.begin_tensor != nullptr; in BuildDenseSpec()
99 const T* const begin_flat = sparse.begin_tensor != nullptr in BuildDenseSpec()
100 ? sparse.begin_tensor->vec<T>().data() in BuildDenseSpec()
170 const Tensor* begin_tensor, const Tensor* end_tensor, in ValidateStridedSliceOp() argument
179 begin_tensor != nullptr && in ValidateStridedSliceOp()
180 !(TensorShapeUtils::IsVector(begin_tensor->shape()) && in ValidateStridedSliceOp()
181 begin_tensor->NumElements() == strides_tensor.NumElements() && in ValidateStridedSliceOp()
182 begin_tensor->NumElements() < 32 /* using 32 bit masks */); in ValidateStridedSliceOp()
189 if (begin_tensor != nullptr && end_tensor != nullptr) { in ValidateStridedSliceOp()
[all …]
Dstrided_slice_op.h65 const Tensor* begin_tensor, const Tensor* end_tensor,
77 const Tensor* begin_tensor, const Tensor* end_tensor,
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/
Dslice_builder.cc44 const auto& begin_tensor = context->tensors[inputs->data[1]]; in PopulateSubGraph() local
47 if (begin_tensor.type == kTfLiteInt32) { in PopulateSubGraph()
48 GetBeginAndSizeVectors<int>(input_tensor.dims->size, &begin_tensor, in PopulateSubGraph()
50 } else if (begin_tensor.type == kTfLiteInt64) { in PopulateSubGraph()
51 GetBeginAndSizeVectors<int64_t>(input_tensor.dims->size, &begin_tensor, in PopulateSubGraph()
Dstrided_slice_builder.cc34 const auto& begin_tensor = context->tensors[inputs->data[1]]; in PopulateSubGraph() local
38 graph_builder_->AddConstNodeWithData(inputs->data[1], begin_tensor); in PopulateSubGraph()
/external/tensorflow/tensorflow/core/kernels/
Dslice_op.cc68 const Tensor& begin_tensor = context->input(1); in SharedSliceValidation() local
73 TensorShapeUtils::IsVector(begin_tensor.shape()) && in SharedSliceValidation()
75 begin_tensor.NumElements() == input.dims() && in SharedSliceValidation()
79 input.dims(), ", but got shapes ", begin_tensor.shape().DebugString(), in SharedSliceValidation()
83 IntTensorToInt64Vec(begin_tensor, begin); in SharedSliceValidation()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dstrided_slice_op.cc214 Tensor begin_tensor, end_tensor, strides_tensor; in Compile() local
217 ctx, LiteralToHostTensor(begin_literal, index_type_, &begin_tensor)); in Compile()
232 begin_is_constant ? &begin_tensor : nullptr, in Compile()
495 Tensor begin_tensor, end_tensor, strides_tensor; in Compile() local
497 ctx, LiteralToHostTensor(begin_literal, index_type_, &begin_tensor)); in Compile()
506 &begin_tensor, &end_tensor, strides_tensor, input_shape, in Compile()
627 Tensor begin_tensor, end_tensor, strides_tensor; in Compile() local
629 ctx, LiteralToHostTensor(begin_literal, index_type_, &begin_tensor)); in Compile()
650 &begin_tensor, &end_tensor, strides_tensor, lhs_shape, in Compile()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_slice_op.cc70 const Tensor& begin_tensor = MklGetInput(context, kInputBeginIndex); in ValidateMklInputs() local
89 TensorShapeUtils::IsVector(begin_tensor.shape()) && in ValidateMklInputs()
91 begin_tensor.NumElements() == input_dims && in ValidateMklInputs()
95 input_dims, ", but got shapes ", begin_tensor.shape().DebugString(), in ValidateMklInputs()
98 *begin = IntTensorToInt64Vec(begin_tensor); in ValidateMklInputs()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils.cc169 auto begin_tensor = CreateI32DenseConst(builder, begin, loc); in CreateStridedSliceOp() local
174 loc, output_type, input, begin_tensor, end_tensor, strides_tensor, in CreateStridedSliceOp()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dlayout_optimizer_test.cc972 Tensor begin_tensor; in TEST_F() local
973 EXPECT_TRUE(begin_tensor.FromProto( in TEST_F()
977 test::ExpectTensorEqual<int>(begin_tensor_expected, begin_tensor); in TEST_F()