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

Function TEST

tensorflow/compiler/tf2xla/tf2xla_util_test.cc:49–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49TEST(ValidateConfig, Good) {
50 tf2xla::Config config;
51 tf2xla::Feed* feed = config.add_feed();
52 feed->mutable_id()->set_node_name("foo");
53 feed->mutable_id()->set_output_index(123);
54 feed->set_name("foo_debug");
55 feed = config.add_feed();
56 feed->mutable_id()->set_node_name("bar");
57 feed->mutable_id()->set_output_index(0);
58 tf2xla::Fetch* fetch = config.add_fetch();
59 fetch->mutable_id()->set_node_name("baz");
60 fetch->mutable_id()->set_output_index(456);
61 fetch->set_name("baz_debug");
62 fetch = config.add_fetch();
63 fetch->mutable_id()->set_node_name("banana");
64 fetch->mutable_id()->set_output_index(0);
65 TF_EXPECT_OK(ValidateConfig(config));
66}
67
68TEST(ValidateConfig, BadEmpty) {
69 tf2xla::Config config;

Callers

nothing calls this directly

Calls 15

ValidateConfigFunction · 0.85
PruneGraphDefIntoFunction · 0.85
FetchesConfigFunction · 0.85
ParseShardingFromDeviceFunction · 0.85
DefaultFunction · 0.85
AttrSliceClass · 0.85
FunctionDefToBodyHelperFunction · 0.85
ExitOnErrorMethod · 0.80
WithOpNameMethod · 0.80

Tested by

no test coverage detected