def METHOD_NAME(self):
    model = resnet18()
    conv_count = self._count_layers(model, paddle.nn.Conv2D)
    qat = SlimQAT(self.q_config)
    quant_model = qat.quantize(model, inplace=True, inputs=self.dummy_input)
    quant_model.train()
    out = quant_model(self.dummy_input)
    out.backward()
    quantizer_cnt = self._count_layers(quant_model, self.quantizer_type)
    self.assertEqual(quantizer_cnt, conv_count * 2)