| 1499 | } |
| 1500 | |
| 1501 | void 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 | |
| 1509 | void TF_OperationToNodeDef(TF_Operation* oper, TF_Buffer* output_node_def, |
| 1510 | TF_Status* status) { |