| 90 | }; |
| 91 | |
| 92 | TEST_F(QuantizeConvModelTest, QuantizationSucceeds) { |
| 93 | auto status = QuantizeModel(&builder_, &model_, TensorType_INT8, |
| 94 | TensorType_INT8, &error_reporter_); |
| 95 | EXPECT_EQ(status, kTfLiteOk); |
| 96 | const uint8_t* buffer = builder_.GetBufferPointer(); |
| 97 | const Model* output_model = GetModel(buffer); |
| 98 | ASSERT_TRUE(output_model); |
| 99 | } |
| 100 | |
| 101 | TEST_F(QuantizeConvModelTest, TensorShapesAndStructureIsUnchanged) { |
| 102 | auto status = QuantizeModel(&builder_, &model_, TensorType_INT8, |
nothing calls this directly
no test coverage detected