I tried to use my final classifier to predict the class of a new instance, using the method eval as described here. After I assigned the device 'cuda', I got an error saying RuntimeError: Expected object of device type cuda but got device type cpu for argument #1 'self' in call to _th_index_select.
Hi,
I tried to use my final classifier to predict the class of a new instance, using the method
eval
as described here. After I assigned the device 'cuda', I got an error sayingRuntimeError: Expected object of device type cuda but got device type cpu for argument #1 'self' in call to _th_index_select
.Fan