Home
last modified time | relevance | path

Searched defs:tensor_index (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/lite/
Darena_planner.cc107 for (int tensor_index : graph_info_->outputs()) { in PlanAllocations() local
113 for (int tensor_index : graph_info_->variables()) { in PlanAllocations() local
119 for (int tensor_index : graph_info_->inputs()) { in PlanAllocations() local
129 for (int tensor_index : graph_info_->variables()) { in PlanAllocations() local
142 int tensor_index = node_inputs->data[j]; in PlanAllocations() local
150 for (int tensor_index : graph_info_->inputs()) { in PlanAllocations() local
162 int tensor_index = node_outputs->data[j]; in PlanAllocations() local
171 int tensor_index = node_inputs->data[j]; in PlanAllocations() local
247 TfLiteStatus ArenaPlanner::ResolveTensorAllocation(int tensor_index) { in ResolveTensorAllocation()
264 TfLiteStatus ArenaPlanner::CalculateTensorAllocation(int tensor_index) { in CalculateTensorAllocation()
[all …]
Dinterpreter.h252 TfLiteTensor* tensor(int tensor_index) { in tensor()
257 const TfLiteTensor* tensor(int tensor_index) const { in tensor()
270 T* typed_tensor(int tensor_index) { in typed_tensor()
282 const T* typed_tensor(int tensor_index) const { in typed_tensor()
381 TfLiteStatus EnsureTensorDataIsReadable(int tensor_index) { in EnsureTensorDataIsReadable()
Dinterpreter.cc128 TfLiteStatus Interpreter::ResizeInputTensor(int tensor_index, in ResizeInputTensor()
137 for (int tensor_index : outputs()) { in Invoke() local
156 int tensor_index, TfLiteType type, const char* name, in SetTensorParametersReadOnly()
165 int tensor_index, TfLiteType type, const char* name, in SetTensorParametersReadWrite()
174 int tensor_index, TfLiteType type, const char* name, const size_t rank, in SetTensorParametersReadOnly()
188 int tensor_index, TfLiteType type, const char* name, const size_t rank, in SetTensorParametersReadWrite()
241 TfLiteStatus Interpreter::SetBufferHandle(int tensor_index, in SetBufferHandle()
261 TfLiteStatus Interpreter::GetBufferHandle(int tensor_index, in GetBufferHandle()
Doptional_debug_tools.cc88 for (size_t tensor_index = 0; tensor_index < interpreter->tensors_size(); in PrintInterpreterState() local
Darena_planner_test.cc185 int64_t GetOffset(int tensor_index) { in GetOffset()
192 int64_t GetOffsetAfter(int tensor_index) { in GetOffsetAfter()
423 auto is_unallocated = [&](int tensor_index) { in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dtest_util.h49 void SetTypedValues(int tensor_index, const std::vector<T>& values) { in SetTypedValues()
56 std::vector<T> GetTypedValues(int tensor_index) { in GetTypedValues()
63 void SetValues(int tensor_index, const std::vector<float>& values) { in SetValues()
69 std::vector<float> GetValues(int tensor_index) { in GetValues()
Dtest_util.cc28 void FlexModelTest::SetStringValues(int tensor_index, in SetStringValues()
51 void FlexModelTest::SetShape(int tensor_index, const std::vector<int>& values) { in SetShape()
56 std::vector<int> FlexModelTest::GetShape(int tensor_index) { in GetShape()
66 TfLiteType FlexModelTest::GetType(int tensor_index) { in GetType()
Dkernel.cc385 for (auto tensor_index : TfLiteIntArrayView(params->output_tensors)) { in Init() local
391 for (auto tensor_index : TfLiteIntArrayView(params->input_tensors)) { in Init() local
465 for (auto tensor_index : op_data->subgraph_inputs) { in Prepare() local
481 for (auto tensor_index : op_data->subgraph_outputs) { in Prepare() local
518 for (auto tensor_index : op_data->subgraph_inputs) { in Eval() local
540 for (auto tensor_index : op_data->subgraph_outputs) { in Eval() local
Dbuffer_map.cc147 void BufferMap::SetFromTfLite(int tensor_index, const TfLiteTensor* tensor) { in SetFromTfLite()
171 void BufferMap::SetFromTensorFlow(int tensor_index, tensorflow::Tensor tensor) { in SetFromTensorFlow()
/external/tensorflow/tensorflow/lite/python/
Dinterpreter.py115 def _get_tensor_details(self, tensor_index): argument
173 def set_tensor(self, tensor_index, value): argument
216 def get_tensor(self, tensor_index): argument
231 def tensor(self, tensor_index): argument
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.h126 TfLiteTensor* tensor(int tensor_index) { in tensor()
135 const TfLiteTensor* tensor(int tensor_index) const { in tensor()
248 TfLiteStatus EnsureTensorDataIsReadable(int tensor_index) { in EnsureTensorDataIsReadable()
Dsubgraph.cc306 for (int tensor_index : node_subset.output_tensors) { in ReplaceNodeSubsetsWithDelegateKernels() local
580 TfLiteStatus Subgraph::ResizeInputTensor(int tensor_index, in ResizeInputTensor()
705 int tensor_index = node.inputs->data[i]; in Invoke() local
820 int tensor_index, TfLiteType type, const char* name, const size_t rank, in SetTensorParametersReadOnly()
871 int tensor_index, TfLiteType type, const char* name, const size_t rank, in SetTensorParametersReadWrite()
/external/tensorflow/tensorflow/lite/experimental/micro/
Dmicro_interpreter.cc87 const int tensor_index = subgraph_->inputs()->Get(i); in MicroInterpreter() local
109 const int tensor_index = op->inputs()->Get(n); in MicroInterpreter() local
115 const int tensor_index = op->outputs()->Get(n); in MicroInterpreter() local
/external/tensorflow/tensorflow/lite/experimental/writer/
Dwriter_lib.cc131 for (auto tensor_index : in ExportTensors() local
138 for (int tensor_index = 0; tensor_index < interpreter_->tensors_size(); in ExportTensors() local
147 for (int tensor_index = 0; tensor_index < interpreter_->tensors_size(); in ExportTensors() local
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibration_logger.h67 void LogTensorValue(int tensor_index, const float* tensor_values, in LogTensorValue()
Dcalibrator.cc199 for (auto tensor_index : tensor_indices) { in GetLoggableTensorIndices() local
/external/tensorflow/tensorflow/core/protobuf/tpu/
Dtpu_embedding_output_layout.proto22 int32 tensor_index = 1; field
/external/tensorflow/tensorflow/lite/kernels/
Dsubgraph_test_util.cc46 void SetupTensor(Subgraph* subgraph, int tensor_index, TfLiteType type) { in SetupTensor()
350 int tensor_index, in CreateConstantInt32Tensor()
Dif.cc156 for (int tensor_index : active_branch_subgraph.outputs()) { in Eval() local
Dwhile.cc268 for (int tensor_index : body_subgraph->outputs()) { in Eval() local
/external/tensorflow/tensorflow/lite/profiling/
Dprofile_summarizer.cc33 int tensor_index) { in GetTensorName()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.cc274 TfLiteStatus AddTensorInput(int tensor_index, bool hybrid_op) { in AddTensorInput()
278 TfLiteStatus AddTensorOutput(int tensor_index) { in AddTensorOutput()
287 TfLiteStatus AddStateFloat32Tensor(int tensor_index, in AddStateFloat32Tensor()
404 TfLiteStatus AddTensor(int tensor_index, bool hybrid_op, in AddTensor()
/external/tensorflow/tensorflow/lite/java/src/main/native/
Dtensor_jni.cc34 TensorHandle(tflite::Interpreter* interpreter, int tensor_index) in TensorHandle()
298 JNIEnv* env, jclass clazz, jlong interpreter_handle, jint tensor_index) { in Java_org_tensorflow_lite_Tensor_create()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc302 PyObject* CheckGetTensorArgs(Interpreter* interpreter_, int tensor_index, in CheckGetTensorArgs()
/external/tensorflow/tensorflow/core/kernels/
Dtensor_array_ops.cc424 const Tensor* tensor_index; in Compute() local
509 const Tensor* tensor_index; in Compute() local

12