haifengl opened this issue 6 months ago · 1 comments
I have a module that was moved to a GPU device (says 4). When I load the model for a file (Module.load(InputArchive), the model goes back to device 0.
(Module.load(InputArchive)
InputArchive.load_from(path, DeviceOptional) solves the problem.
InputArchive.load_from(path, DeviceOptional)