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

Function TEST_F

tensorflow/core/framework/op_def_builder_test.cc:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87TEST_F(OpDefBuilderTest, Attr) {
88 ExpectSuccess(b().Attr("a:string"), "attr: { name: 'a' type: 'string' }");
89 ExpectSuccess(b().Attr("A: int"), "attr: { name: 'A' type: 'int' }");
90 ExpectSuccess(b().Attr("a1 :float"), "attr: { name: 'a1' type: 'float' }");
91 ExpectSuccess(b().Attr("a_a : bool"), "attr: { name: 'a_a' type: 'bool' }");
92 ExpectSuccess(b().Attr("aB : type"), "attr: { name: 'aB' type: 'type' }");
93 ExpectSuccess(b().Attr("aB_3\t: shape"),
94 "attr: { name: 'aB_3' type: 'shape' }");
95 ExpectSuccess(b().Attr("t: tensor"), "attr: { name: 't' type: 'tensor' }");
96 ExpectSuccess(b().Attr("XYZ\t:\tlist(type)"),
97 "attr: { name: 'XYZ' type: 'list(type)' }");
98 ExpectSuccess(b().Attr("f: func"), "attr { name: 'f' type: 'func'}");
99}
100
101TEST_F(OpDefBuilderTest, AttrFailure) {
102 ExpectFailure(

Callers

nothing calls this directly

Calls 9

ExpectSuccessFunction · 0.85
ExpectFailureFunction · 0.85
UnknownClass · 0.70
bFunction · 0.50
AttrMethod · 0.45
InputMethod · 0.45
OutputMethod · 0.45
FinalizeMethod · 0.45
is_statefulMethod · 0.45

Tested by

no test coverage detected