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

Function AssertEqual

tensorflow/c/c_api_function_test.cc:1640–1648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1638}
1639
1640void AssertEqual(TF_Function* f1, TF_Function* f2) {
1641 string s1, s2;
1642 tensorflow::FunctionDef fdef1, fdef2;
1643 ASSERT_TRUE(GetFunctionDef(f1, &fdef1));
1644 ASSERT_TRUE(GetFunctionDef(f2, &fdef2));
1645 SerializeToStringDeterministic(fdef1, &s1);
1646 SerializeToStringDeterministic(fdef2, &s2);
1647 ASSERT_EQ(s1, s2);
1648}
1649
1650string GetName(TF_Function* func) {
1651 tensorflow::FunctionDef fdef;

Callers 1

TEST_FFunction · 0.85

Calls 2

GetFunctionDefFunction · 0.85

Tested by

no test coverage detected