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

Function TEST

tensorflow/core/framework/tensor_shape_test.cc:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace {
34
35TEST(TensorShapeTest, Default) {
36 // The default TensorShape constructor constructs a shape of 0-dim
37 // and 1-element.
38 TensorShape s;
39 EXPECT_EQ(s.dims(), 0);
40 EXPECT_EQ(s.num_elements(), 1);
41}
42
43TEST(TensorShapeTest, set_dim) {
44 TensorShape s({10, 5});

Callers

nothing calls this directly

Calls 15

IsValidFunction · 0.85
SkewedSizeFunction · 0.85
TensorShapeOldClass · 0.85
MakeShapeFunction · 0.85
StartsWithFunction · 0.85
EndsWithFunction · 0.85
RemoveLastDimsMethod · 0.80
RemoveDimRangeMethod · 0.80
c_strMethod · 0.80
UniformMethod · 0.80
TensorShapeClass · 0.70
maxFunction · 0.50

Tested by

no test coverage detected