-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Labels
Description
Since PyTorch 4.0, some things have been deprecated and should be fixed:
-
Variabledoes not exist anymore -
loss.data[0]should now beloss.item() -
volatileflag does not do anything, useno_gradinstead -
.to()method allows us to write device-agnostic code