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

Method Get

tensorflow/core/common_runtime/eager/attr_builder.h:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 // and nodes have a small number of attributes.
108 template <class T>
109 Status Get(StringPiece attr_name, T* value) const {
110 // Common attributes are stored in AttrVecs. This Get() template
111 // is specialized for them below. If we end up here, the type must be
112 // among those that we store in the node_def_.
113 if (node_def_ == nullptr) {
114 return errors::NotFound("No attr named'", attr_name,
115 "' found in AttrBuilder for ", op_name_);
116 }
117 return GetNodeAttr(node_def_, attr_name, value);
118 }
119
120 tensorflow::Fprint128 CacheKey(const StringPiece device);
121

Callers 6

ShouldRewriteOpMethod · 0.45
ShouldCompileWithXLAFunction · 0.45
MaybeUpdateOpDeviceFunction · 0.45
GetPriorityMethod · 0.45
gpu_device.ccFile · 0.45

Calls 2

NotFoundFunction · 0.85
GetNodeAttrFunction · 0.50

Tested by

no test coverage detected