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

Method set_attr

tensorflow/compiler/jit/node_matchers.h:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 void set_attr(AttrKeyValuePair attr) {
137 DCHECK(IsEmpty());
138 attr_ = std::move(attr);
139 }
140
141 bool IsEmpty() const {
142 return !name().has_value() && !op().has_value() && !inputs().has_value() &&

Callers 1

AttrMethod · 0.45

Calls 1

IsEmptyFunction · 0.85

Tested by

no test coverage detected