diff --git a/test/operators/test_quantize_op.cpp b/test/operators/test_quantize_op.cpp index 275dedc16901a88bd146ec54ac0b377f77a47312..2f8e08806be426e3cb23804514a01b0ca44a0fe1 100644 --- a/test/operators/test_quantize_op.cpp +++ b/test/operators/test_quantize_op.cpp @@ -132,7 +132,7 @@ int TestQuqntizeOp(const int batch_size, const int channel, const int height, framework::Tensor output_cmp; output_cmp.Resize(output->dims()); float scale = 127 / output_scale_cmp; - quantize(input, scale, &output_cmp); + quantize(input, scale, &output_cmp); int8_t *output_cmp_data = output_cmp.data(); for (int i = 0; i < output->numel(); ++i) { PADDLE_MOBILE_ENFORCE(output_data[i] == output_cmp_data[i],