new_contents: import os
  import torch
  from torch.autograd import Variable
  from torch import optim
  import torch.nn.functional as F
  import torch.nn as nn
  import argparse
  import models
  
  
  parser = argparse.ArgumentParser(description='convert_to_cpu.py')
  
  parser.add_argument('-load_model', default='',
                      help="""Model filename to load and convert.""")                   
                      
  opt = parser.parse_args()    
  
  checkpoint = torch.load(opt.load_model)
  embed = checkpoint['embed']
  rnn = checkpoint['rnn']
  
  checkpoint = {
  	'rnn': rnn.cpu(),
  	'embed': embed.cpu(),
  	'opt': checkpoint['opt'],
  	'epoch': checkpoint['epoch']
  	}
  save_file = opt.load_model + '.cpu'
  print('Saving to '+ save_file)
  torch.save(checkpoint, save_file)
  
subject: Create convert_to_cpu.py