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

Method HasAttr

tensorflow/core/framework/dataset.cc:316–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool GraphDefBuilderWrapper::HasAttr(const string& name,
317 const string& attr_name) const {
318 const OpDef* op_def = nullptr;
319 Status s = b_->opts().op_registry()->LookUpOpDef(name, &op_def);
320 if (!s.ok() || op_def == nullptr) {
321 return false;
322 }
323 return HasAttr(op_def, attr_name);
324}
325
326int64 GetAllocatedBytes(const std::vector<Tensor>& element) {
327 int64 allocated_bytes = 0;

Callers 15

XlaIfOpMethod · 0.45
GatherOpMethod · 0.45
XlaCaseOpMethod · 0.45
XlaWhileOpMethod · 0.45
MklFusedMatMulOpMethod · 0.45
TensorListConcatMethod · 0.45
TensorArrayOpMethod · 0.45
GetErrorOptionsFunction · 0.45
GatherOpMethod · 0.45
InitConv2DParametersFunction · 0.45

Calls 4

HasAttrFunction · 0.85
LookUpOpDefMethod · 0.80
op_registryMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected