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

Function TfLiteTensorDataFree

tensorflow/lite/c/c_api_internal.c:90–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88void TfLiteFloatArrayFree(TfLiteFloatArray* a) { free(a); }
89
90void TfLiteTensorDataFree(TfLiteTensor* t) {
91 if (t->allocation_type == kTfLiteDynamic && t->data.raw) {
92 free(t->data.raw);
93 }
94 t->data.raw = NULL;
95}
96
97void TfLiteQuantizationFree(TfLiteQuantization* quantization) {
98 if (quantization->type == kTfLiteAffineQuantization) {

Callers 4

MakeLiteTensorFunction · 0.85
MakeLiteTensor<string>Function · 0.85
TfLiteTensorFreeFunction · 0.85

Calls

no outgoing calls

Tested by 2

MakeLiteTensorFunction · 0.68
MakeLiteTensor<string>Function · 0.68