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

Function ShapeToString

tensorflow/lite/toco/tooling_util.cc:1836–1842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1834}
1835
1836string ShapeToString(const Shape& shape) {
1837 if (shape.dimensions_count() == 0) {
1838 return "[]";
1839 }
1840
1841 return absl::StrCat("[ ", absl::StrJoin(shape.dims(), ", "), " ]");
1842}
1843
1844void PrintArrayShape(Model* model, const string& name) {
1845 if (!model->GetArray(name).has_shape()) {

Callers 5

PrintArrayShapeFunction · 0.70
RunMethod · 0.50
RunMethod · 0.50

Calls 3

dimensions_countMethod · 0.80
StrCatFunction · 0.50
dimsMethod · 0.45

Tested by

no test coverage detected