diff options
author | 2018-05-18 16:28:59 -0700 | |
---|---|---|
committer | 2018-05-18 16:32:05 -0700 | |
commit | f4cb5978667ccf6396e4a779e3a482766959e5dd (patch) | |
tree | bd86d11f33b3e33edbdde2d4cd55799bd6cf1307 /tensorflow/contrib/lite/toco/import_tensorflow_test.cc | |
parent | 88ec2f68522495d13d8efc5542c7999e841b85e5 (diff) |
Improve import error messages.
PiperOrigin-RevId: 197217638
Diffstat (limited to 'tensorflow/contrib/lite/toco/import_tensorflow_test.cc')
-rw-r--r-- | tensorflow/contrib/lite/toco/import_tensorflow_test.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tensorflow/contrib/lite/toco/import_tensorflow_test.cc b/tensorflow/contrib/lite/toco/import_tensorflow_test.cc index 5dc78f73ad..835676662b 100644 --- a/tensorflow/contrib/lite/toco/import_tensorflow_test.cc +++ b/tensorflow/contrib/lite/toco/import_tensorflow_test.cc @@ -148,10 +148,11 @@ TEST_P(ShapeImportTest, ValidShapeButZeroElements) { NodeDef node; BuildConstNode({1, 2, 2, 2}, GetParam(), 0, &node); auto status = ImportNode(node); - EXPECT_THAT(status.error_message(), - ::testing::MatchesRegex( - "Neither input_content nor .*_val have the right dimensions " - "for this .* tensor .while processing node 'Node1'.")); + EXPECT_THAT( + status.error_message(), + ::testing::MatchesRegex( + "Neither input_content .0. nor .*_val .0. have the right " + "dimensions .8. for this .* tensor .while processing node 'Node1'.")); } INSTANTIATE_TEST_CASE_P(ValidShapeButZeroElements, ShapeImportTest, ::testing::ValuesIn(TestTypes())); |