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

Method GetShape

tensorflow/lite/delegates/flex/test_util.cc:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::vector<int> FlexModelTest::GetShape(int tensor_index) {
57 std::vector<int> result;
58 auto* dims = interpreter_->tensor(tensor_index)->dims;
59 result.reserve(dims->size);
60 for (int i = 0; i < dims->size; ++i) {
61 result.push_back(dims->data[i]);
62 }
63 return result;
64}
65
66TfLiteType FlexModelTest::GetType(int tensor_index) {
67 return interpreter_->tensor(tensor_index)->type;

Callers

nothing calls this directly

Calls 3

tensorMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected