MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / EqualGraphDefWrapper

Function EqualGraphDefWrapper

tensorflow/python/client/tf_session_helper.cc:454–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454string 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
467string EqualAttrValueWrapper(const string& actual, const string& expected) {
468 AttrValue actual_attr_value;

Callers

nothing calls this directly

Calls 2

EqualGraphDefFunction · 0.85
ParseFromStringMethod · 0.45

Tested by

no test coverage detected