/external/tensorflow/tensorflow/lite/experimental/micro/kernels/ |
D | softmax_test.cc | 38 constexpr int tensors_size = inputs_size + outputs_size; in TestSoftmaxFloat() local 39 TfLiteTensor tensors[tensors_size] = { in TestSoftmaxFloat() 45 PopulateContext(tensors, tensors_size, &context); in TestSoftmaxFloat() 102 constexpr int tensors_size = inputs_size + outputs_size; in TestSoftmaxQuantized() local 103 TfLiteTensor tensors[tensors_size] = { in TestSoftmaxQuantized() 111 PopulateContext(tensors, tensors_size, &context); in TestSoftmaxQuantized()
|
D | depthwise_conv_test.cc | 45 constexpr int tensors_size = inputs_size + outputs_size; in TestDepthwiseConvFloat() local 46 TfLiteTensor tensors[tensors_size] = { in TestDepthwiseConvFloat() 59 PopulateContext(tensors, tensors_size, &context); in TestDepthwiseConvFloat() 126 constexpr int tensors_size = inputs_size + outputs_size; in TestDepthwiseConvQuantized() local 127 TfLiteTensor tensors[tensors_size] = { in TestDepthwiseConvQuantized() 139 PopulateContext(tensors, tensors_size, &context); in TestDepthwiseConvQuantized()
|
D | fully_connected_test.cc | 45 constexpr int tensors_size = inputs_size + outputs_size; in TestFullyConnectedFloat() local 46 TfLiteTensor tensors[tensors_size] = { in TestFullyConnectedFloat() 54 PopulateContext(tensors, tensors_size, &context); in TestFullyConnectedFloat() 119 constexpr int tensors_size = inputs_size + outputs_size; in TestFullyConnectedQuantized() local 120 TfLiteTensor tensors[tensors_size] = { in TestFullyConnectedQuantized() 132 PopulateContext(tensors, tensors_size, &context); in TestFullyConnectedQuantized()
|
/external/tensorflow/tensorflow/lite/experimental/micro/ |
D | micro_interpreter.h | 42 size_t tensors_size() const { return context_.tensors_size; } in tensors_size() function
|
D | micro_interpreter_test.cc | 108 constexpr size_t tensors_size = 3; in BuildMockModel() local 109 const Offset<Tensor> tensors[tensors_size] = { in BuildMockModel() 138 CreateSubGraph(builder, builder.CreateVector(tensors, tensors_size), in BuildMockModel()
|
D | micro_interpreter.cc | 82 context_.tensors_size = tensors_->Length(); in MicroInterpreter() 85 sizeof(TfLiteTensor) * context_.tensors_size, 4)); in MicroInterpreter()
|
/external/tensorflow/tensorflow/lite/experimental/micro/testing/ |
D | test_utils.h | 81 inline void PopulateContext(TfLiteTensor* tensors, int tensors_size, in PopulateContext() argument 83 context->tensors_size = tensors_size; in PopulateContext()
|
/external/tensorflow/tensorflow/lite/ |
D | optional_debug_tools.cc | 82 interpreter->tensors_size(), interpreter->nodes_size()); in PrintInterpreterState() 88 for (size_t tensor_index = 0; tensor_index < interpreter->tensors_size(); in PrintInterpreterState()
|
D | interpreter.cc | 244 TF_LITE_ENSURE(context_, tensor_index < tensors_size()); in SetBufferHandle() 264 TF_LITE_ENSURE(context_, tensor_index < tensors_size()); in GetBufferHandle()
|
D | interpreter.h | 235 size_t tensors_size() const { return context_->tensors_size; } in tensors_size() function
|
D | model_test.cc | 130 ASSERT_EQ(interpreter->tensors_size(), 4); in TEST()
|
D | interpreter_test.cc | 106 ASSERT_EQ(interpreter.tensors_size(), 0); in TEST() 108 ASSERT_EQ(interpreter.tensors_size(), 2); in TEST() 111 ASSERT_EQ(interpreter.tensors_size(), 5); in TEST() 113 ASSERT_EQ(interpreter.tensors_size(), 6); in TEST()
|
D | nnapi_delegate.cc | 121 for (size_t i = 0; i < subgraph->tensors_size(); i++) { in addTensorOperands() 711 std::vector<int64_t> tensor_id_to_nnapi_id(subgraph->tensors_size(), in BuildGraph()
|
/external/tensorflow/tensorflow/lite/experimental/writer/ |
D | writer_lib.cc | 122 tensor_to_written_tensor_.resize(interpreter_->tensors_size(), -1); in ExportTensors() 127 std::vector<bool> tensor_is_temporary(interpreter_->tensors_size(), false); in ExportTensors() 138 for (int tensor_index = 0; tensor_index < interpreter_->tensors_size(); in ExportTensors() 147 for (int tensor_index = 0; tensor_index < interpreter_->tensors_size(); in ExportTensors()
|
/external/tensorflow/tensorflow/lite/core/ |
D | subgraph.cc | 152 context_->tensors_size = 0; in Subgraph() 177 for (size_t i = 0; i < context_->tensors_size; i++) { in ~Subgraph() 416 if (index < 0 || static_cast<size_t>(index) >= context_->tensors_size) { in CheckTensorIndices() 419 label, context_->tensors_size); in CheckTensorIndices() 590 tensor_index < context_->tensors_size && tensor_index >= 0); in ResizeInputTensor() 787 context_->tensors_size = tensors_.size(); in AddTensors() 830 tensor_index < context_->tensors_size && tensor_index >= 0); in SetTensorParametersReadOnly() 879 tensor_index < context_->tensors_size && tensor_index >= 0); in SetTensorParametersReadWrite()
|
D | subgraph.h | 128 static_cast<size_t>(tensor_index) >= context_->tensors_size) { in tensor() 137 static_cast<size_t>(tensor_index) >= context_->tensors_size) { in tensor() 161 size_t tensors_size() const { return tensors_.size(); } in tensors_size() function
|
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/ |
D | interpreter_wrapper.cc | 35 if (i >= interpreter_->tensors_size() || i < 0) { \ 38 interpreter_->tensors_size()); \ 183 return interpreter_->tensors_size(); in NumTensors() 187 if (!interpreter_ || i >= interpreter_->tensors_size() || i < 0) { in TensorName()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | string_view_variant_wrapper.h | 56 if (data.tensors_size() != 1 || data.tensors(0).dtype() != DT_STRING) { in Decode()
|
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | label_image.cc | 119 LOG(INFO) << "tensors size: " << interpreter->tensors_size() << "\n"; in RunInference() 124 int t_size = interpreter->tensors_size(); in RunInference()
|
/external/tensorflow/tensorflow/lite/java/src/test/native/ |
D | interpreter_test_jni.cc | 62 for (size_t i = 0; i < context->tensors_size; ++i) { in Java_org_tensorflow_lite_InterpreterTest_getNativeHandleForDelegate()
|
/external/tensorflow/tensorflow/core/framework/ |
D | variant_tensor_data.h | 66 int tensors_size() const;
|
D | variant_tensor_data.cc | 27 int VariantTensorData::tensors_size() const { return tensors_.size(); } in tensors_size() function in tensorflow::VariantTensorData
|
/external/libtextclassifier/annotator/ |
D | model-executor.cc | 63 if (interpreter->tensors_size() != 2) { in FromBuffer()
|
/external/tensorflow/tensorflow/lite/c/ |
D | c_api_internal.h | 395 size_t tensors_size; member
|
/external/tensorflow/tensorflow/contrib/lite/ |
D | nnapi_delegate.cc | 150 for (size_t i = 0; i < interpreter->tensors_size(); i++) { in addTensorOperands() 722 std::vector<int64_t> tensor_id_to_nnapi_id(interpreter->tensors_size(), in BuildGraph()
|