Device error when extending Trainer class

in this line the weights should be put on the same device as the model.

1 Like