def METHOD_NAME(self):
    model = resnet18()
    conv_count = self._count_layers(model, paddle.nn.Conv2D)
    ptq = PTQ(self.q_config)
    model.eval()
    quant_model = ptq.quantize(model, inplace=False)
    zero_input = paddle.zeros_like(self.dummy_input)
    out = quant_model(zero_input)
    out = quant_model(self.dummy_input)
    out = quant_model(zero_input)
    out = quant_model(self.dummy_input + 1.)
    quantizer_cnt = self._count_layers(quant_model, self.observer_type)
    self.assertEqual(quantizer_cnt, 2 * conv_count)