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

Function HasDynamicTensorImpl

tensorflow/lite/core/subgraph.cc:75–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73// Returns true if at least one tensor in the given list is kTfLiteDynamic.
74template <typename TensorIntArray>
75bool HasDynamicTensorImpl(const TfLiteContext& context,
76 const TensorIntArray& int_array) {
77 for (int i : int_array) {
78 const TfLiteTensor& tensor = context.tensors[i];
79 if (tensor.allocation_type == kTfLiteDynamic) {
80 return true;
81 }
82 }
83 return false;
84}
85
86bool HasDynamicTensor(const TfLiteContext& context,
87 const TfLiteIntArray* int_array) {

Callers 2

HasDynamicTensorFunction · 0.85
AllocateTensorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected