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

Function TfLiteIntArrayCreate

tensorflow/lite/c/c_api_internal.c:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44#ifndef TF_LITE_STATIC_MEMORY
45
46TfLiteIntArray* TfLiteIntArrayCreate(int size) {
47 size_t alloc_size = TfLiteIntArrayGetSizeInBytes(size);
48 if (alloc_size <= 0) return NULL;
49 TfLiteIntArray* ret = (TfLiteIntArray*)malloc(alloc_size);
50 if (!ret) return ret;
51 ret->size = size;
52 return ret;
53}
54
55void TfLiteIntArrayPrint(const char* s, TfLiteIntArray* a) {
56 printf("%s: length=%d [", s, a->size);

Callers 15

TESTFunction · 0.85
ParseQuantizationMethod · 0.85
ConvertVectorFunction · 0.85
TestGraphMethod · 0.85
WriteToTensorAsVectorMethod · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
SimpleDelegateMethod · 0.85
TESTFunction · 0.85

Calls 1

Tested by 15

TESTFunction · 0.68
ConvertVectorFunction · 0.68
TestGraphMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
SimpleDelegateMethod · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
InterpreterFp16Method · 0.68
InterpreterFp32Method · 0.68
InterpreterMultiNodeMethod · 0.68