| 1283 | |
| 1284 | template <typename T> |
| 1285 | void SetAttrValue(FunctionDef* fdef, const string& attr, const T& value) { |
| 1286 | AttrValue attr_value; |
| 1287 | SetAttrValue(value, &attr_value); |
| 1288 | fdef->mutable_attr()->insert({attr, attr_value}); |
| 1289 | } |
| 1290 | |
| 1291 | TEST(FunctionLibraryDefinitionTest, GetAttr_FuncWithAttr) { |
| 1292 | FunctionDefLibrary proto; |
no test coverage detected