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

Function TEST

serving/processor/framework/util/utils_test.cc:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace processor {
24
25TEST(UtilsTest, HasDynamicShapeOutput0) {
26 GraphDef graph_def;
27 NodeDef* n0 = graph_def.add_node();
28 n0->set_name("A");
29 n0->set_op("A");
30 AttrValue value0;
31 tensorflow::TensorShapeProto tshape0;
32 tshape0.add_dim()->set_size(-1);
33 *value0.mutable_shape() = tshape0;
34 (*n0->mutable_attr())["_output_shapes"] = value0;
35
36 EXPECT_TRUE(HasDynamicShapeOutput(n0));
37}
38
39TEST(UtilsTest, HasDynamicShapeOutput1) {
40 GraphDef graph_def;

Callers

nothing calls this directly

Calls 8

HasDynamicShapeOutputFunction · 0.85
set_opMethod · 0.80
add_shapeMethod · 0.80
set_nameMethod · 0.45
set_sizeMethod · 0.45
mutable_shapeMethod · 0.45
add_inputMethod · 0.45

Tested by

no test coverage detected