I do as you said. Now torch.cat works fine for tensor, but fails for variable. I think it’s because Concat function doesn’t have keyword out. Maybe it could be fixed by

  
      github.com/pytorch/pytorch
  
  
    
  
    
  

  
    
      add keyword `out` for autograd function Concat to match torch.cat 15
    

    
      pytorch:master ← chenyuntc:master
    

    
      
        opened 
        
          
        
        Apr 23, 2017
      
      

      
        
          
          chenyuntc
        
      

      
        
          +6
          -4