Solved by richard in post #2 
              
              
                From the error message it sounds like the output of torch.cat(x, 0) is a Variable. You shouldn’t be wrapping that within another Variable.