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

Function TEST_F

tensorflow/compiler/xla/shape_test.cc:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50};
51
52TEST_F(ShapeTest, ShapeToFromProto) {
53 for (const Shape& shape : {opaque_, token_, scalar_, matrix_, matrix2_,
54 tuple_, nested_tuple_, dynamic_matrix_}) {
55 Shape shape_copy(shape.ToProto());
56 EXPECT_TRUE(ShapeUtil::Equal(shape, shape_copy))
57 << shape << " != " << shape_copy;
58 }
59}
60
61TEST_F(ShapeTest, ShapeToString) {
62 EXPECT_EQ("opaque[]", opaque_.ToString());

Callers

nothing calls this directly

Calls 14

MakeShapeFunction · 0.85
set_dynamic_dimensionMethod · 0.80
is_staticMethod · 0.80
is_dynamic_dimensionMethod · 0.80
add_parametersMethod · 0.80
mutable_resultMethod · 0.80
add_parameter_namesMethod · 0.80
parameters_sizeMethod · 0.80
parameter_names_sizeMethod · 0.80
EqualClass · 0.70
ToProtoMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected