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

Function TEST

tensorflow/cc/framework/scope_test.cc:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace tensorflow {
22
23TEST(ScopeTest, BasicNames) {
24 Scope root = Scope::NewRootScope();
25 EXPECT_EQ(root.GetUniqueNameForOp("add"), "add");
26 EXPECT_EQ(root.GetUniqueNameForOp("add"), "add_1");
27 EXPECT_EQ(root.GetUniqueNameForOp("add"), "add_2");
28 EXPECT_EQ(root.GetUniqueNameForOp("mul"), "mul");
29}
30
31TEST(ScopeTest, OpAndScopeNameCollision) {
32 Scope root = Scope::NewRootScope();

Callers

nothing calls this directly

Calls 13

LinearOpFunction · 0.85
CreateOutputWithScopeFunction · 0.85
GetUniqueNameForOpMethod · 0.80
NewSubScopeMethod · 0.80
WithOpNameMethod · 0.80
GetCompositeOpScopesMethod · 0.80
OperationClass · 0.70
nameMethod · 0.65
PlaceholderFunction · 0.50
okMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected