Modify your Torch according to this PR

  
      github.com/pytorch/pytorch
  
  
    
  
    
  

  
    
      Improve compatibility with Torch7
    

    
      pytorch:master ← mvitez:master
    

    
      
        opened 
        
          
        
        Feb 14, 2017
      
      

      
        
          
          mvitez
        
      

      
        
          +2
          -1
        
      
    

  


  
  
    
    
  
  


and process your model.net 14 with this script:
function patch(m)
   if torch.type(m) == 'nn.Padding' and m.nInputDim == 3 then
      m.dim = m.dim+1
      m.nInputDim = 4
   end
   if torch.type(m) == 'nn.View' and #m.size == 1 then
      newsize = torch.LongStorage(2)
      newsize[1] = 1
      newsize[2] = m.size[1]
      m.size = newsize
   end
   if m.modules then
      for i =1,#m.modules do
         patch(m.modules[i])
      end
   end
end

require 'nn'
net = torch.load('model.net')
patch(net)
torch.save('model2.net',net)