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

Function GetFloatAttr

tensorflow/lite/toco/import_tensorflow.cc:96–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96float GetFloatAttr(const NodeDef& node, const string& attr_name) {
97 CHECK(HasAttr(node, attr_name));
98 const auto& attr = node.attr().at(attr_name);
99 CHECK_EQ(attr.value_case(), AttrValue::kF);
100 return attr.f();
101}
102
103bool GetBoolAttr(const NodeDef& node, const string& attr_name) {
104 CHECK(HasAttr(node, attr_name));

Callers 5

ConvertLRNOperatorFunction · 0.85
ConvertLeakyReluOperatorFunction · 0.85
CompareMethod · 0.85

Calls 4

HasAttrFunction · 0.85
attrMethod · 0.80
atMethod · 0.45
fMethod · 0.45

Tested by 1

CompareMethod · 0.68