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

Method GetAttr

tensorflow/c/c_api_function_test.cc:381–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379 }
380
381 void GetAttr(const char* attr_name, AttrValue* out_attr) {
382 TF_Buffer* attr_buf = TF_NewBuffer();
383 TF_FunctionGetAttrValueProto(func_, attr_name, attr_buf, s_);
384 ASSERT_TRUE(out_attr->ParseFromArray(attr_buf->data, attr_buf->length));
385 TF_DeleteBuffer(attr_buf);
386 }
387
388 const char* func_name_ = "MyFunc";
389 const char* func_node_name_ = "MyFunc_0";

Callers

nothing calls this directly

Calls 3

TF_NewBufferFunction · 0.85
TF_DeleteBufferFunction · 0.85

Tested by

no test coverage detected