diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-01-31 10:06:24 -0800 |
---|---|---|
committer | Michael Case <mikecase@google.com> | 2018-01-31 17:10:09 -0800 |
commit | e818d10f84bad3faad398f4b55831064666af5df (patch) | |
tree | 76c837d0c358891d323751dd4b99b1d9b91228e7 /tensorflow/core/util/example_proto_fast_parsing_test.cc | |
parent | 16b9fc676be6f8aacf06977a7f9439a56ffccefa (diff) |
Update external protobuf codebase version
PiperOrigin-RevId: 184006959
Diffstat (limited to 'tensorflow/core/util/example_proto_fast_parsing_test.cc')
-rw-r--r-- | tensorflow/core/util/example_proto_fast_parsing_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/core/util/example_proto_fast_parsing_test.cc b/tensorflow/core/util/example_proto_fast_parsing_test.cc index 9b6a8e1251..13e41c17f7 100644 --- a/tensorflow/core/util/example_proto_fast_parsing_test.cc +++ b/tensorflow/core/util/example_proto_fast_parsing_test.cc @@ -57,6 +57,7 @@ void TestCorrectness(const string& serialized) { Example example; Example fast_example; EXPECT_TRUE(example.ParseFromString(serialized)); + example.DiscardUnknownFields(); EXPECT_TRUE(TestFastParse(serialized, &fast_example)); EXPECT_EQ(example.DebugString(), fast_example.DebugString()); if (example.DebugString() != fast_example.DebugString()) { |