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

Function TEST

tensorflow/core/grappler/optimizers/data/slack_test.cc:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 std::make_tuple("8", 8)));
85
86TEST(SlackTest, TestFailWithoutInit) {
87 GrapplerItem item;
88 Slack optimizer;
89 GraphDef output;
90 Status result = optimizer.Optimize(nullptr, item, &output);
91
92 EXPECT_FALSE(result.ok());
93 EXPECT_TRUE(errors::IsInvalidArgument(result));
94}
95
96TEST(SlackTest, TestFailWithInvalidSlackEveryParam) {
97 GrapplerItem item;

Callers

nothing calls this directly

Calls 15

SetupGrapplerItemFunction · 0.85
MakeGrapplerFunctionItemFunction · 0.85
ContainsNodeWithOpFunction · 0.85
FindGraphNodeWithOpFunction · 0.85
attrMethod · 0.80
AddNodeFunction · 0.70
nameMethod · 0.65
SetAttrValueFunction · 0.50
StrCatFunction · 0.50
OptimizeMethod · 0.45
okMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected