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

Function HasWildcardDimension

tensorflow/lite/toco/import_tensorflow.cc:74–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74bool HasWildcardDimension(const TensorShapeProto& shape) {
75 for (const auto& dim : shape.dim()) {
76 if (dim.size() == -1) return true;
77 }
78 return false;
79}
80
81const string& GetStringAttr(const NodeDef& node, const string& attr_name) {
82 CHECK(HasAttr(node, attr_name));

Callers 2

Calls 2

dimMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected