In below code, when tensor is move to GPU and if i find max value then output is " tensor(8, device=‘cuda:0’)". How should i get only value (8 not 'cuda:0) in assign variable?
import torch
x=torch.arange(0,9)
print("cpu ",x)
x=x.to(0)
print("gpu ",x)
y=torch.max(x)
print("max is ",y)