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

Method GetTensorShape

tensorflow/lite/kernels/test_util.h:344–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342 }
343
344 std::vector<int> GetTensorShape(int index) {
345 std::vector<int> result;
346 TfLiteTensor* t = interpreter_->tensor(index);
347 for (int i = 0; i < t->dims->size; ++i) {
348 result.push_back(t->dims->data[i]);
349 }
350 return result;
351 }
352
353 void SetNumThreads(int num_threads) {
354 CHECK(interpreter_ != nullptr);

Callers 4

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

tensorMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected