| 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"; |
nothing calls this directly
no test coverage detected