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

Function EqualArrayAndTfLiteIntArray

tensorflow/lite/util.cc:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool EqualArrayAndTfLiteIntArray(const TfLiteIntArray* a, const int b_size,
41 const int* b) {
42 if (!a) return false;
43 if (a->size != b_size) return false;
44 for (int i = 0; i < a->size; ++i) {
45 if (a->data[i] != b[i]) return false;
46 }
47 return true;
48}
49
50size_t CombineHashes(std::initializer_list<size_t> hashes) {
51 size_t result = 0;

Callers 2

ResizeInputTensorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected