MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST_F

Function TEST_F

tensorflow/lite/tools/optimize/quantize_model_test.cc:92–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90};
91
92TEST_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
101TEST_F(QuantizeConvModelTest, TensorShapesAndStructureIsUnchanged) {
102 auto status = QuantizeModel(&builder_, &model_, TensorType_INT8,

Callers

nothing calls this directly

Calls 15

GetModelFunction · 0.85
tensorsMethod · 0.80
QuantizeModelFunction · 0.70
GetAsVectorFunction · 0.70
nameMethod · 0.65
typeMethod · 0.65
sizeMethod · 0.45
getMethod · 0.45
GetMethod · 0.45
bufferMethod · 0.45
shapeMethod · 0.45

Tested by

no test coverage detected