Hi, tensor on your GPU is not torch.tensor.
So you need to use .cpu() before you call .numpy().
Please check related topic for detail:

  
    
    
    Convert to numpy cuda variable 
  
  
    How to convert cuda variables to numpy?
  


Shortly, it would be like:
... data.cpu().numpy()