Home
last modified time | relevance | path

Searched refs:ComputeSizeRatio (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/core/grappler/utils/
Dsymbolic_shapes_test.cc125 EXPECT_EQ(16, ComputeSizeRatio(MakeShape({32, 32}), MakeShape({32, 2}))); in TEST_F()
126 EXPECT_EQ(16, ComputeSizeRatio(MakeShape({-2, 32}), MakeShape({-2, 2}))); in TEST_F()
128 ComputeSizeRatio(MakeShape({-2, -2, 32}), MakeShape({-2, 2, -2}))); in TEST_F()
130 ComputeSizeRatio(MakeShape({-2, -2, 32}), MakeShape({-2, 2, 2}))); in TEST_F()
132 ComputeSizeRatio(MakeShape({-2, 2, 32}), MakeShape({-2, 2, -2}))); in TEST_F()
133 EXPECT_EQ(-1, ComputeSizeRatio(MakeShape({-2, -2}), MakeShape({-2, 2}))); in TEST_F()
134 EXPECT_EQ(-1, ComputeSizeRatio(MakeShape({-2, 32}), MakeShape({-2, -2}))); in TEST_F()
135 EXPECT_EQ(1, ComputeSizeRatio(MakeShape({-2, -3}), MakeShape({-3, -2}))); in TEST_F()
136 EXPECT_EQ(-1, ComputeSizeRatio(MakeShape({-1, 32}), MakeShape({-2, 2}))); in TEST_F()
137 EXPECT_EQ(-1, ComputeSizeRatio(MakeShape({-1, 32}), MakeShape({-2, 0}))); in TEST_F()
Dsymbolic_shapes.h71 int64 ComputeSizeRatio(const TensorShapeProto& numerator,
Dsymbolic_shapes.cc216 int64 ComputeSizeRatio(const TensorShapeProto& numerator, in ComputeSizeRatio() function
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dshape_optimizer.cc112 int64 result = ComputeSizeRatio(shape1, shape2); in Optimize()