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

Function GetBoolAttr

tensorflow/lite/toco/import_tensorflow.cc:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool GetBoolAttr(const NodeDef& node, const string& attr_name) {
104 CHECK(HasAttr(node, attr_name));
105 const auto& attr = node.attr().at(attr_name);
106 CHECK_EQ(attr.value_case(), AttrValue::kB);
107 return attr.b();
108}
109
110tensorflow::DataType GetDataTypeAttr(const NodeDef& node,
111 const string& attr_name) {

Calls 4

HasAttrFunction · 0.85
attrMethod · 0.80
atMethod · 0.45
bMethod · 0.45

Tested by

no test coverage detected