Switching device
Closed this issue · 1 comments
enhuiz commented
Hi. I notice the model requires passing the device
as an argument, which may have not been decided yet at the point of the module initialization. Once the device is decided, it seems we cannot easily change it. Do you consider making the device switchable? One solution may be instead of passing the device, add an attribute:
@property
def device(self):
return next(self.parameters()).device
sooftware commented
Thank you. Can you send me a pull request?