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

Function TEST_F

tensorflow/lite/tools/optimize/quantize_weights_test.cc:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130};
131
132TEST_F(QuantizeWeightsTest, QuantizationSucceeds) {
133 LoadBasicModel();
134 flatbuffers::FlatBufferBuilder builder;
135 auto status = QuantizeWeights(&builder, model_, 0);
136 EXPECT_EQ(status, kTfLiteOk);
137
138 const uint8_t* buffer = builder.GetBufferPointer();
139 const Model* output_model = GetModel(buffer);
140 ASSERT_TRUE(output_model);
141}
142
143TEST_F(QuantizeWeightsTest, WeightsMinNumElements) {
144 LoadBasicModel();

Callers

nothing calls this directly

Calls 13

GetModelFunction · 0.85
tensorsMethod · 0.80
QuantizeWeightsFunction · 0.70
GetAsVectorFunction · 0.70
nameMethod · 0.65
typeMethod · 0.65
sizeMethod · 0.45
GetMethod · 0.45
bufferMethod · 0.45
shapeMethod · 0.45
operatorsMethod · 0.45
inputsMethod · 0.45

Tested by

no test coverage detected