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

Function CheckAttrExists

tensorflow/core/grappler/utils.cc:534–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532#undef HANDLE_CASE
533
534Status CheckAttrExists(const NodeDef& node, const string& key) {
535 if (!HasNodeAttr(node, key)) {
536 return errors::InvalidArgument("Node '", node.name(), "' lacks '", key,
537 "' attr: ", node.ShortDebugString());
538 }
539 return Status::OK();
540}
541
542Status CheckAttrsExist(const NodeDef& node, absl::Span<const string> keys) {
543 for (const string& key : keys) {

Callers 13

CheckAttrsExistFunction · 0.85
TESTFunction · 0.85
ConstantPushDownMethod · 0.85
InitializeChainsMethod · 0.85
TrySimplifyMethod · 0.85
TrySimplifyMethod · 0.85
CheckInputsMethod · 0.85

Calls 3

InvalidArgumentFunction · 0.85
nameMethod · 0.65
ShortDebugStringMethod · 0.45

Tested by 1

TESTFunction · 0.68