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

Function TEST

tensorflow/core/ops/compat/backwards_compatibility_test.cc:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25namespace {
26
27TEST(BackwardsCompatibilityTest, IsCompatible) {
28 OpCompatibilityLib compatibility("tensorflow/core/ops",
29 strings::StrCat("v", TF_MAJOR_VERSION),
30 nullptr);
31
32 Env* env = Env::Default();
33 int changed_ops = 0;
34 int added_ops = 0;
35 TF_ASSERT_OK(
36 compatibility.ValidateCompatible(env, &changed_ops, &added_ops, nullptr));
37 printf("%d changed ops\n%d added ops\n", changed_ops, added_ops);
38}
39
40} // namespace
41} // namespace tensorflow

Callers

nothing calls this directly

Calls 3

DefaultFunction · 0.85
ValidateCompatibleMethod · 0.80
StrCatFunction · 0.50

Tested by

no test coverage detected