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

Function HasAttr

tensorflow/lite/toco/import_tensorflow.cc:70–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69namespace {
70bool HasAttr(const NodeDef& node, const string& attr_name) {
71 return node.attr().count(attr_name) > 0;
72}
73
74bool HasWildcardDimension(const TensorShapeProto& shape) {
75 for (const auto& dim : shape.dim()) {

Callers 15

GetIntAttrFunction · 0.85
GetFloatAttrFunction · 0.85
GetBoolAttrFunction · 0.85
GetDataTypeAttrFunction · 0.85
CheckOptionalAttrFunction · 0.85
ConvertConvOperatorFunction · 0.85

Calls 2

attrMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected