diff options
author | 2018-01-25 17:32:12 -0800 | |
---|---|---|
committer | 2018-01-25 17:35:41 -0800 | |
commit | 32a6eb80dcde4d107f21e41097fddd8341a725b9 (patch) | |
tree | 84211d7d2ae3beb9a2faf3f27029a28d83b1812c /tensorflow/contrib/lite/model_test.cc | |
parent | 8220c228ab066d23ddf506a58bb08b1694239a34 (diff) |
Move flatbuffer verifier to a separate lib
PiperOrigin-RevId: 183318384
Diffstat (limited to 'tensorflow/contrib/lite/model_test.cc')
-rw-r--r-- | tensorflow/contrib/lite/model_test.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tensorflow/contrib/lite/model_test.cc b/tensorflow/contrib/lite/model_test.cc index 5330c8f594..66f22fd66a 100644 --- a/tensorflow/contrib/lite/model_test.cc +++ b/tensorflow/contrib/lite/model_test.cc @@ -20,7 +20,6 @@ limitations under the License. #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> -#include <string> #include "tensorflow/contrib/lite/model.h" @@ -247,14 +246,6 @@ TEST(BasicFlatBufferModel, TestNullErrorReporter) { ASSERT_NE(interpreter->Invoke(), kTfLiteOk); } -// Test what happens if we cannot bind any of the ops. -TEST(BasicFlatBufferModel, TestBuildModelFromCorruptedData) { - std::string corrupted_data = "123"; - auto model = FlatBufferModel::BuildFromBuffer(corrupted_data.c_str(), - corrupted_data.length()); - ASSERT_FALSE(model); -} - // Test that loading model directly from a Model flatbuffer works. TEST(BasicFlatBufferModel, TestBuildFromModel) { TestErrorReporter reporter; |