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

Function TF_OperationGetAttrValueProto

tensorflow/c/c_api.cc:1501–1507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1499}
1500
1501void TF_OperationGetAttrValueProto(TF_Operation* oper, const char* attr_name,
1502 TF_Buffer* output_attr_value,
1503 TF_Status* status) {
1504 const auto* attr = GetAttrValue(oper, attr_name, status);
1505 if (TF_GetCode(status) != TF_OK) return;
1506 status->status = MessageToBuffer(*attr, output_attr_value);
1507}
1508
1509void TF_OperationToNodeDef(TF_Operation* oper, TF_Buffer* output_node_def,
1510 TF_Status* status) {

Callers 1

GetAttrValueFunction · 0.85

Calls 3

GetAttrValueFunction · 0.85
TF_GetCodeFunction · 0.85
MessageToBufferFunction · 0.85

Tested by 1

GetAttrValueFunction · 0.68