def METHOD_NAME(self):
    model = resnet18()
    qat = SlimQAT(self.q_config)
    quant_model = qat.quantize(model, inplace=True, inputs=self.dummy_input)
    quantizer_count_indygraph = self._count_layers(quant_model,
                                                   self.quantizer_type)
    save_path = os.path.join(self.path, 'qat_model')
    quant_model.eval()
    paddle.jit.save(quant_model, save_path, input_spec=[self.dummy_input])
    layer2count = load_model_and_count_layer(
        save_path, [self.quantizer_type_in_static])
    quantizer_count_in_static_model = layer2count[
        self.quantizer_type_in_static]
    self.assertEqual(quantizer_count_indygraph,
                     quantizer_count_in_static_model)