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

Function ConvertVectorToTfLiteIntArray

tensorflow/lite/util.cc:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27TfLiteIntArray* ConvertVectorToTfLiteIntArray(const std::vector<int>& input) {
28 return ConvertArrayToTfLiteIntArray(static_cast<int>(input.size()),
29 input.data());
30}
31
32TfLiteIntArray* ConvertArrayToTfLiteIntArray(const int rank, const int* dims) {
33 TfLiteIntArray* output = TfLiteIntArrayCreate(rank);

Callers 8

TESTFunction · 0.85
GenericPrepareFunction · 0.85
PrepareFunction · 0.85
MakeLiteTensorFunction · 0.85
MakeLiteTensor<string>Function · 0.85
AddNodeWithParametersMethod · 0.85
ResizeInputTensorMethod · 0.85

Calls 3

sizeMethod · 0.45
dataMethod · 0.45

Tested by 4

TESTFunction · 0.68
GenericPrepareFunction · 0.68
MakeLiteTensorFunction · 0.68
MakeLiteTensor<string>Function · 0.68