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

Function ResizeTensor

tensorflow/lite/delegates/flex/util_test.cc:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51TfLiteStatus ResizeTensor(TfLiteContext* context, TfLiteTensor* tensor,
52 TfLiteIntArray* new_size) {
53 TestContext* c = static_cast<TestContext*>(context);
54 c->new_size.clear();
55 for (int i = 0; i < new_size->size; ++i) {
56 c->new_size.push_back(new_size->data[i]);
57 }
58 TfLiteIntArrayFree(new_size);
59 return kTfLiteOk;
60}
61
62TEST(UtilTest, ConvertStatus) {
63 TestContext context;

Callers

nothing calls this directly

Calls 3

TfLiteIntArrayFreeFunction · 0.85
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected