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

Function GetAttrValue

tensorflow/c/c_test_util.cc:424–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424bool GetAttrValue(TF_Operation* oper, const char* attr_name,
425 tensorflow::AttrValue* attr_value, TF_Status* s) {
426 TF_Buffer* buffer = TF_NewBuffer();
427 TF_OperationGetAttrValueProto(oper, attr_name, buffer, s);
428 bool ret = TF_GetCode(s) == TF_OK;
429 if (ret) ret = attr_value->ParseFromArray(buffer->data, buffer->length);
430 TF_DeleteBuffer(buffer);
431 return ret;
432}
433
434std::vector<std::pair<string, string>> GetGradDefs(
435 const tensorflow::GraphDef& graph_def) {

Callers 8

TEST_FFunction · 0.85
TESTFunction · 0.85

Calls 4

TF_NewBufferFunction · 0.85
TF_GetCodeFunction · 0.85
TF_DeleteBufferFunction · 0.85

Tested by

no test coverage detected