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

Function TEST

tensorflow/lite/tools/optimize/model_utils_test.cc:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace {
32
33TEST(ModelUtilsTest, QuantizationParametersExist) {
34 TensorT tensor;
35 tensor.quantization = absl::make_unique<QuantizationParametersT>();
36 tensor.quantization->scale.push_back(0.5);
37 tensor.quantization->scale.push_back(1.5);
38 EXPECT_FALSE(QuantizationParametersExist(&tensor));
39 tensor.quantization->zero_point.push_back(1);
40 tensor.quantization->zero_point.push_back(-1);
41 EXPECT_TRUE(QuantizationParametersExist(&tensor));
42}
43
44TEST(ModelUtilsTest, HasBuffer) {
45 tflite::ModelT model;

Callers

nothing calls this directly

Calls 5

HasBufferFunction · 0.85
HasMinMaxFunction · 0.85
push_backMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected