I think using with torch.no_grad()
is a much better way than using .data
which ptblck mentioned in this thread.
2 Likes
I think using with torch.no_grad()
is a much better way than using .data
which ptblck mentioned in this thread.