| 31 | namespace tensorflow { |
| 32 | |
| 33 | NodeDef ToNodeDef(const string& text) { |
| 34 | NodeDef node_def; |
| 35 | EXPECT_TRUE(protobuf::TextFormat::MergeFromString(text, &node_def)); |
| 36 | return node_def; |
| 37 | } |
| 38 | |
| 39 | // Create a FunctionDef that takes one resource and one regular param |
| 40 | FunctionDef XTimesY() { |