Home
last modified time | relevance | path

Searched refs:primary_subgraph (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/lite/
Dinterpreter.cc104 context_ = primary_subgraph().context(); in Interpreter()
163 primary_subgraph().SetExternalContext(type, ctx); in SetExternalContext()
167 return primary_subgraph().SetInputs(std::move(inputs)); in SetInputs()
171 return primary_subgraph().SetOutputs(std::move(outputs)); in SetOutputs()
175 return primary_subgraph().SetVariables(std::move(variables)); in SetVariables()
185 return primary_subgraph().AllocateTensors(); in AllocateTensors()
206 return primary_subgraph().AddNodeWithParameters( in AddNodeWithParameters()
213 return primary_subgraph().ResizeInputTensor(tensor_index, dims); in ResizeInputTensor()
218 return primary_subgraph().ResizeInputTensorStrict(tensor_index, dims); in ResizeInputTensorStrict()
231 scoped_runtime_event, primary_subgraph().Invoke()); in Invoke()
[all …]
Dinterpreter_experimental.cc40 return primary_subgraph().SetCustomAllocationForTensor(tensor_index, in SetCustomAllocationForTensor()
48 return primary_subgraph().ReleaseNonPersistentMemory(); in ReleaseNonPersistentMemory()
73 bool Interpreter::IsCancelled() { return primary_subgraph().IsCancelled(); } in IsCancelled()
79 bool Interpreter::HasDelegates() { return primary_subgraph().HasDelegates(); } in HasDelegates()
85 TfLiteTensor* tensor = primary_subgraph().tensor(tensor_index); in SetBufferHandle()
104 TfLiteTensor* tensor = primary_subgraph().tensor(tensor_index); in GetBufferHandle()
135 return primary_subgraph().GetProfiler(); in GetProfiler()
Dinterpreter.h213 const std::vector<int>& inputs() const { return primary_subgraph().inputs(); } in inputs()
223 return primary_subgraph().outputs(); in outputs()
228 return primary_subgraph().variables(); in variables()
241 size_t nodes_size() const { return primary_subgraph().nodes_size(); } in nodes_size()
245 return primary_subgraph().execution_plan(); in execution_plan()
252 return primary_subgraph().tensor(tensor_index); in tensor()
257 return primary_subgraph().tensor(tensor_index); in tensor()
264 return primary_subgraph().node_and_registration(node_index); in node_and_registration()
579 return primary_subgraph().EnsureTensorDataIsReadable(tensor_index); in EnsureTensorDataIsReadable()
720 Subgraph& primary_subgraph() { in primary_subgraph() function
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dsubgraph_test_util_test.cc49 &interpreter_->primary_subgraph()); in TestAccumulateLoopBody()
72 builder_->BuildAddSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
87 builder_->BuildMulSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
102 builder_->BuildPadSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
117 builder_->BuildPadSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
133 builder_->BuildLessEqualCondSubgraph(&interpreter_->primary_subgraph(), 3); in TEST_F()
155 builder_->BuildPadLoopBodySubgraph(&interpreter_->primary_subgraph(), {1, 2}); in TEST_F()
Dwhile_test.cc47 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
76 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
118 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
144 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
179 &interpreter_->primary_subgraph()); in TEST_F()
Dtest_util.cc238 tflite::Subgraph& primary_subgraph = interpreter_->primary_subgraph(); in BuildInterpreter() local
240 &primary_subgraph.context_, in BuildInterpreter()
241 std::unique_ptr<GraphInfo>(primary_subgraph.CreateGraphInfo())); in BuildInterpreter()
242 primary_subgraph.memory_planner_.reset(memory_planner); in BuildInterpreter()
Dif_test.cc42 builder_->BuildIfSubgraph(&interpreter_->primary_subgraph()); in SetUp()
127 builder_->BuildIfSubgraph(&interpreter_->primary_subgraph()); in SetUp()
Dcall_once_test.cc37 &interpreter_->primary_subgraph()); in SetUp()
Dhashtable_ops_test.cc649 return interpreter_->primary_subgraph().resources(); in GetResources()
770 return interpreter_->primary_subgraph().resources(); in GetResources()
/external/tensorflow/tensorflow/lite/experimental/acceleration/mini_benchmark/
Dcall_test.cc193 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), 1, in TEST_F()
216 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), 1, loop_count, in TEST_F()
237 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), 1, kLoopCount, in TEST_F()
265 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), 1, in TEST_F()
295 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), in TEST_F()
298 const TfLiteNode* call_node = &interpreter_->primary_subgraph() in TEST_F()
309 CallTest::BuildMultiNodeGraph(&interpreter_->primary_subgraph()); in TEST_F()
346 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), 1, loop_count, in TEST_F()
361 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), 1, loop_count, in TEST_F()
380 CallTest::BuildCallSubgraph(&interpreter_->primary_subgraph(), 1, kLoopCount, in TEST_F()
[all …]
/external/tensorflow/tensorflow/lite/core/
Dsubgraph_test.cc37 auto& subgraph = interpreter.primary_subgraph(); in TEST()
52 auto& subgraph = interpreter.primary_subgraph(); in TEST()
65 auto& subgraph = interpreter.primary_subgraph(); in TEST()
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib_test.cc56 SubgraphWriter writer(&interpreter->primary_subgraph()); in WriteToFile()
90 SubgraphWriter writer(&interpreter.primary_subgraph()); in TEST_P()
100 SubgraphWriter writer(&interpreter.primary_subgraph()); in TEST_P()
174 SubgraphWriter writer(&interpreter.primary_subgraph()); in TEST_P()
224 SubgraphWriter writer(&interpreter.primary_subgraph()); in TEST_P()
269 SubgraphWriter writer(&interpreter.primary_subgraph()); in TEST_P()
458 SubgraphWriter writer(&interpreter.primary_subgraph()); in TEST_P()
527 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
583 builder_->BuildWhileSubgraph(&interpreter_->primary_subgraph()); in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dkernel_test.cc139 const int node_size = interpreter_->primary_subgraph().nodes_size(); in TEST_F()
141 interpreter_->primary_subgraph().node_and_registration(node_size - 1); in TEST_F()
194 delegate_data_->GetBufferMap(interpreter_->primary_subgraph().context()); in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/
Ddelegate_test_util.cc125 SetUpSubgraph(&interpreter_->primary_subgraph()); in SetUp()
138 SetUpSubgraph(&interpreter_->primary_subgraph()); in SetUp()
/external/tensorflow/tensorflow/lite/profiling/
Dprofile_summarizer_test.cc160 builder_->BuildIfSubgraph(&interpreter_->primary_subgraph()); in SetUp()
/external/tensorflow/tensorflow/lite/tools/optimize/calibration/
Dcalibrator.cc307 *context = interpreter->primary_subgraph().context(); in GetNodeOpInfoMapAndContext()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmodel_builder_test.cc151 TfLiteContext* context() { return interpreter_.primary_subgraph().context(); } in context()
165 interpreter_.primary_subgraph().node_and_registration(index); in node()
170 interpreter_.primary_subgraph().node_and_registration(index); in registration()