Solved by adrianjav in post #2 
              
              
                Usually what I do is using the numpy() method to transform the tensor into a numpy object, e.g., print(my_variable.data.cpu().numpy())