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

Function SetTensorToDynamic

tensorflow/lite/kernels/kernel_util.h:110–115  ·  view source on GitHub ↗

Sets tensor to dynamic.

Source from the content-addressed store, hash-verified

108
109// Sets tensor to dynamic.
110inline void SetTensorToDynamic(TfLiteTensor* tensor) {
111 if (tensor->allocation_type != kTfLiteDynamic) {
112 tensor->allocation_type = kTfLiteDynamic;
113 tensor->data.raw = nullptr;
114 }
115}
116
117// Determines whether it is a hybrid op - one that has float inputs and
118// quantized weights.

Callers 15

PrepareFunction · 0.85
PrepareFunction · 0.85
UseDynamicOutputTensorsFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85
PrepareFunction · 0.85

Calls

no outgoing calls

Tested by 1