Home
last modified time | relevance | path

Searched refs:nodes_to_replace (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/
Dutils_test.cc86 params1.nodes_to_replace = TfLiteIntArrayCreate(1);
87 params1.nodes_to_replace->data[0] = 1;
91 params2.nodes_to_replace = TfLiteIntArrayCreate(4);
92 params2.nodes_to_replace->data[0] = 0;
93 params2.nodes_to_replace->data[1] = 3;
94 params2.nodes_to_replace->data[2] = 7;
95 params2.nodes_to_replace->data[3] = 8;
99 params3.nodes_to_replace = TfLiteIntArrayCreate(3);
100 params3.nodes_to_replace->data[0] = 2;
101 params3.nodes_to_replace->data[1] = 4;
[all …]
Dutils.cc85 return left->nodes_to_replace->size > in GetFirstNLargestPartitions()
86 right->nodes_to_replace->size; in GetFirstNLargestPartitions()
94 if (p->nodes_to_replace->size < min_nodes_per_partition) { in GetFirstNLargestPartitions()
108 auto nodes = p->nodes_to_replace; in GetNodesOfFirstNLargestPartitionsImpl()
189 auto nodes = first_n_partitions[i]->nodes_to_replace; in GetNodesOfFirstNLargestPartitionsImpl()
Dserialization_test.cc68 auto* nodes_to_replace = TfLiteIntArrayCreate(num_nodes); in GenerateTfLiteDelegateParams() local
71 owned_arrays_.push_back(nodes_to_replace); in GenerateTfLiteDelegateParams()
75 nodes_to_replace->data[i] = i; in GenerateTfLiteDelegateParams()
87 params.nodes_to_replace = nodes_to_replace; in GenerateTfLiteDelegateParams()
Ddelegate_test.cc65 ASSERT_EQ(params->nodes_to_replace->size, 3); in TEST_F()
66 EXPECT_EQ(params->nodes_to_replace->data[0], 0); in TEST_F()
67 EXPECT_EQ(params->nodes_to_replace->data[1], 1); in TEST_F()
68 EXPECT_EQ(params->nodes_to_replace->data[2], 2); in TEST_F()
1023 TfLiteIntArray* nodes_to_replace = TfLiteIntArrayCreate(1); in SetUp() local
1024 nodes_to_replace->data[0] = execution_plan->data[1]; in SetUp()
1026 context, DelegateRegistration(), nodes_to_replace, delegate); in SetUp()
1027 TfLiteIntArrayFree(nodes_to_replace); in SetUp()
Dserialization.cc268 auto* nodes = delegate_params->nodes_to_replace; in GetEntryImpl()
Ddelegate_test_util.cc213 const auto* nodes_in_subset = params_array[idx].nodes_to_replace; in SimpleDelegate()
/external/tensorflow/tensorflow/lite/delegates/utils/
Dsimple_delegate_test.cc78 ASSERT_EQ(params->nodes_to_replace->size, 3); in TEST_F()
79 EXPECT_EQ(params->nodes_to_replace->data[0], 0); in TEST_F()
80 EXPECT_EQ(params->nodes_to_replace->data[1], 1); in TEST_F()
81 EXPECT_EQ(params->nodes_to_replace->data[2], 2); in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmodel_builder_test.cc143 TfLiteIntArrayFree(params.nodes_to_replace); in ~DelegatedInterpreter()
330 [](struct TfLiteContext* context, const TfLiteIntArray* nodes_to_replace, in TEST()
333 EXPECT_EQ(nodes_to_replace->size, 1); in TEST()
336 params->nodes_to_replace = TfLiteIntArrayCreate(1); in TEST()
337 params->nodes_to_replace->data[0] = 2; in TEST()
387 [](struct TfLiteContext* context, const TfLiteIntArray* nodes_to_replace, in TEST()
390 EXPECT_EQ(nodes_to_replace->size, 1); in TEST()
393 params->nodes_to_replace = TfLiteIntArrayCreate(1); in TEST()
394 params->nodes_to_replace->data[0] = 2; in TEST()
450 [](struct TfLiteContext* context, const TfLiteIntArray* nodes_to_replace, in TEST()
[all …]
Dmodel_builder.cc3300 for (int i = 0; i < delegate_params->nodes_to_replace->size; ++i) { in BuildModelEnforceIO()
3304 context, delegate_params->nodes_to_replace->data[i], &tflite_node, in BuildModelEnforceIO()
3337 context, delegate_params->nodes_to_replace->data[tflite_nodes[i]], in BuildModelEnforceIO()
/external/tensorflow/tensorflow/lite/core/
Dsubgraph.cc302 const TfLiteIntArray* nodes_to_replace, TfLiteDelegate* delegate) { in ReplaceNodeSubsetsWithDelegateKernels() argument
304 ->ReplaceNodeSubsetsWithDelegateKernels(registration, nodes_to_replace, in ReplaceNodeSubsetsWithDelegateKernels()
364 params->nodes_to_replace = reinterpret_cast<TfLiteIntArray*>(allocation); in CreateDelegateParams()
365 CopyVectorToTfLiteIntArray(node_subset.nodes, params->nodes_to_replace); in CreateDelegateParams()
387 params->nodes_to_replace = TfLiteIntArrayCreate(node_subset.nodes.size()); in PopulatePreviewDelegateParams()
388 CopyVectorToTfLiteIntArray(node_subset.nodes, params->nodes_to_replace); in PopulatePreviewDelegateParams()
403 TfLiteRegistration registration, const TfLiteIntArray* nodes_to_replace, in ReplaceNodeSubsetsWithDelegateKernels() argument
406 if (!nodes_to_replace->size) { in ReplaceNodeSubsetsWithDelegateKernels()
417 PartitionGraphIntoIndependentNodeSubsets(&info, nodes_to_replace, in ReplaceNodeSubsetsWithDelegateKernels()
426 nodes_to_replace->size, in ReplaceNodeSubsetsWithDelegateKernels()
[all …]
Dsubgraph.h578 const TfLiteIntArray* nodes_to_replace, TfLiteDelegate* delegate);
586 TfLiteRegistration registration, const TfLiteIntArray* nodes_to_replace,
620 const TfLiteIntArray* nodes_to_replace,
626 struct TfLiteContext* context, const TfLiteIntArray* nodes_to_replace,
/external/tensorflow/tensorflow/lite/c/
Dcommon.h656 TfLiteIntArray* nodes_to_replace; member
735 const TfLiteIntArray* nodes_to_replace, struct TfLiteDelegate* delegate);
817 struct TfLiteContext* context, const TfLiteIntArray* nodes_to_replace,
/external/tensorflow/tensorflow/lite/
Doptional_debug_tools.cc462 for (int nid : TfLiteIntArrayView(params->nodes_to_replace)) { in PrintInterpreterState()
549 delegate, delegate_params->nodes_to_replace->size); in PrintInterpreterState()
550 PrintTfLiteIntVector(delegate_params->nodes_to_replace, in PrintInterpreterState()
Dinterpreter_test.cc995 TfLiteIntArray nodes_to_replace; in TEST() local
996 nodes_to_replace.size = 0; in TEST()
998 context, delegate_registration, &nodes_to_replace, nullptr), in TEST()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dkernel.cc467 op_data_->nodes.reserve(params->nodes_to_replace->size); in Init()
469 CHECK(params->nodes_to_replace); in Init()
480 for (auto node_index : TfLiteIntArrayView(params->nodes_to_replace)) { in Init()
/external/tensorflow/tensorflow/lite/g3doc/performance/
Dimplementing_delegate.md144 inputs_.resize(params->nodes_to_replace->size);
145 outputs_.resize(params->nodes_to_replace->size);
146 builtin_code_.resize(params->nodes_to_replace->size);
147 for (int i = 0; i < params->nodes_to_replace->size; ++i) {
148 const int node_index = params->nodes_to_replace->data[i];
/external/armnn/delegate/opaque/src/
Darmnn_delegate.cpp424 for (int i = 0; i < parameters->nodes_to_replace->size; ++i) in Create()
426 const int nodeIndex = parameters->nodes_to_replace->data[i]; in Create()
/external/armnn/delegate/classic/src/
Darmnn_delegate.cpp356 for (int i = 0; i < parameters->nodes_to_replace->size; ++i) in Create()
358 const int nodeIndex = parameters->nodes_to_replace->data[i]; in Create()
/external/tensorflow/tensorflow/lite/delegates/hexagon/
Dhexagon_delegate_kernel.cc82 for (auto node_index : TfLiteIntArrayView(params->nodes_to_replace)) { in Init()
/external/tensorflow/tensorflow/lite/delegates/coreml/
Dcoreml_delegate_kernel.mm124 for (int node_index : TfLiteIntArrayView(delegate_params->nodes_to_replace)) {
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.cc4467 for (auto node_index : TfLiteIntArrayView(params->nodes_to_replace)) { in Init()
6366 const int cache_key = delegate_params->nodes_to_replace->data[0]; in CacheDelegateKernel()
6372 const int cache_key = delegate_params->nodes_to_replace->data[0]; in MaybeGetCachedDelegateKernel()
6589 partition_params.nodes_to_replace->size); in GetNodesSupportedByAccelerator()
6623 partition_params.nodes_to_replace->data[0]) != in LimitDelegatedPartitions()
6632 return left.nodes_to_replace->size > in LimitDelegatedPartitions()
6633 right.nodes_to_replace->size; in LimitDelegatedPartitions()
6642 partition_params.nodes_to_replace->data, in LimitDelegatedPartitions()
6643 partition_params.nodes_to_replace->data + in LimitDelegatedPartitions()
6644 partition_params.nodes_to_replace->size); in LimitDelegatedPartitions()
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dxnnpack_delegate.cc295 for (int i = 0; i < params->nodes_to_replace->size; i++) { in Create()
296 const int node_index = params->nodes_to_replace->data[i]; in Create()
663 for (int i = 0; i < params->nodes_to_replace->size; i++) { in Create()
664 const int node_index = params->nodes_to_replace->data[i]; in Create()