I have just starting using pytorch and i got a question it might be trivial but i couldn’t get the difference of two ways of using cuda model
if use_cuda:
model = model.cuda() # GPU model
and the second way is :
if use_cuda:
x, target = x.cuda(), target.cuda()
Thanks in Advance