def convert_to_mobile(self):
    logging.info("mode: convert_to_mobile")
    self.net.eval()

    logging.info("step1: quantize model")
    model_quantizer = ModelQuantizer()
    quantized_model = model_quantizer.quantize_model(self.cfg, self.net, self.cur_device, "qnnpack")
    # quantized_model = self.net

    logging.info("step2: script/trace model")
    traced_script_model = torch.jit.script(quantized_model)

    logging.info("step3: model optimization")
    traced_script_model_optimized = optimize_for_mobile(traced_script_model)
    # traced_script_model_optimized = traced_script_model

    logging.info("step4: save mobile model")
    mobile_model_path = self.cfg['common']['convert_model_mobile']
    traced_script_model_optimized._save_for_lite_interpreter(mobile_model_path)