title: How to make vgg pytorch's ptl size smaller on android?
body: <pre><code>import torch
  # import joblib
  from torch.utils.mobile_optimizer import optimize_for_mobile
  from torchvision.models.vgg import vgg16
  import torch, torchvision.models
  
  # lb = joblib.load('lb.pkl')
  device = torch.device('cuda:0')
  #device = torch.device('cpu')#'cuda:0')
  torch.backends.cudnn.benchmark = True
  model = vgg16().to(device)
  
  
  
  # model = torchvision.models.vgg16()
  path = 'model-22222.pth'
  torch.save(model.state_dict(), path) # nothing else here
  model.load_state_dict(torch.load(path))
  
  #model.load_state_dict(torch.load('./model-76-0.7754.pth'))
  
  scripted_module = torch.jit.script(model)
  optimized_scripted_module = optimize_for_mobile(scripted_module)
  optimized_scripted_module._save_for_lite_interpreter(&quot;model-76-0.7754.ptl&quot;)
  </code></pre>
  <p>The <code>optimize_for_mobile</code> seems does not make the ptl file smaller, it's about 527M, too large on Android. How to make it smaller?</p>