MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetNodeAndRegistration

Method GetNodeAndRegistration

tensorflow/lite/core/subgraph.cc:914–924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914TfLiteStatus Subgraph::GetNodeAndRegistration(
915 int node_index, TfLiteNode** node, TfLiteRegistration** registration) {
916 TF_LITE_ENSURE(&context_, node_index >= 0);
917 auto nodes_size = nodes_and_registration_.size();
918 TF_LITE_ENSURE(&context_, static_cast<size_t>(node_index) < nodes_size);
919 TF_LITE_ENSURE(&context_, node != nullptr && registration != nullptr);
920 auto& node_and_reg = nodes_and_registration_[node_index];
921 *node = &node_and_reg.first;
922 *registration = &node_and_reg.second;
923 return kTfLiteOk;
924}
925
926TfLiteStatus Subgraph::GetNodeAndRegistration(
927 struct TfLiteContext* context, int node_index, TfLiteNode** node,

Callers 9

TESTFunction · 0.80
SimpleDelegateMethod · 0.80
PrepareFunction · 0.80
InitFunction · 0.80
GetNodeAndRegistrationFunction · 0.80
TESTFunction · 0.80
AddOpsAndTensorsMethod · 0.80
DoPrepareMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by 3

TESTFunction · 0.64
SimpleDelegateMethod · 0.64
TESTFunction · 0.64