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

Function IsConstantTensor

tensorflow/lite/kernels/kernel_util.h:99–101  ·  view source on GitHub ↗

Determines whether tensor is constant.

Source from the content-addressed store, hash-verified

97
98// Determines whether tensor is constant.
99inline bool IsConstantTensor(const TfLiteTensor* tensor) {
100 return tensor->allocation_type == kTfLiteMmapRo;
101}
102
103// Determines whether tensor is dynamic. Note that a tensor can be non-const and
104// not dynamic. This function specifically checks for a dynamic tensor.

Callers 15

PrepareFunction · 0.70
PrepareFunction · 0.70
EvalFunction · 0.70
PrepareFunction · 0.70
EvalFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70
PrepareFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected