| 452 | } |
| 453 | |
| 454 | string EqualGraphDefWrapper(const string& actual, const string& expected) { |
| 455 | GraphDef actual_def; |
| 456 | if (!actual_def.ParseFromString(actual)) { |
| 457 | return "actual is not a valid serialized GraphDef"; |
| 458 | } |
| 459 | GraphDef expected_def; |
| 460 | if (!expected_def.ParseFromString(expected)) { |
| 461 | return "expected is not a valid serialized GraphDef"; |
| 462 | } |
| 463 | string diff; |
| 464 | return EqualGraphDef(actual_def, expected_def, &diff) ? "" : diff; |
| 465 | } |
| 466 | |
| 467 | string EqualAttrValueWrapper(const string& actual, const string& expected) { |
| 468 | AttrValue actual_attr_value; |
nothing calls this directly
no test coverage detected