aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework/partial_tensor_shape_test.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-01-15 11:03:01 -0800
committerGravatar Manjunath Kudlur <keveman@gmail.com>2016-01-15 12:39:38 -0800
commit409c68eb2531f450680233c437b219237b0609e2 (patch)
tree1fe6b5a25d5d6dd662f2eb43bc15157dd00fcf60 /tensorflow/core/framework/partial_tensor_shape_test.cc
parent42d705408beb0d7a45798fa22df5684296716a38 (diff)
Fix the split-on-underscore and show-data-download-links options.
The regressions were introduced in cl/110462065 Also fix the tf-tensorboard/demo/index.html file (minor) Change: 112265591
Diffstat (limited to 'tensorflow/core/framework/partial_tensor_shape_test.cc')
-rw-r--r--tensorflow/core/framework/partial_tensor_shape_test.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tensorflow/core/framework/partial_tensor_shape_test.cc b/tensorflow/core/framework/partial_tensor_shape_test.cc
index aa92c2b3fb..6f5bfdf062 100644
--- a/tensorflow/core/framework/partial_tensor_shape_test.cc
+++ b/tensorflow/core/framework/partial_tensor_shape_test.cc
@@ -125,6 +125,19 @@ TEST(PartialTensorShapeTest, PartialShapeCompatibleWith) {
EXPECT_FALSE(c.IsCompatibleWith(f));
}
+TEST(PartialTensorShapeTest, ShapeCompatibleWith) {
+ const PartialTensorShape a({-1, 0, 1});
+ TensorShape b({0, 1});
+ TensorShape c({0, 0, 1});
+ TensorShape d({1, 0, 1});
+ TensorShape e({1, 1, 1});
+
+ EXPECT_FALSE(a.IsCompatibleWith(b));
+ EXPECT_TRUE(a.IsCompatibleWith(c));
+ EXPECT_TRUE(a.IsCompatibleWith(d));
+ EXPECT_FALSE(a.IsCompatibleWith(e));
+}
+
TEST(PartialTensorShapeTest, PartialShapeMergeWith) {
const PartialTensorShape a({-1, 0, 1});
const PartialTensorShape b({1, 0, 1});