Closed TianyuDu closed 2 years ago
(1) Add thedevice attribute to conditional-logit and nested-logit models, (2) add the device information to the __str__ method as well; and (3) add the to() method to these models for easier moving them between CPU and GPU.
device
__str__
to()
I am working on this on the device-method branch.
device-method
I have initiated a pull request for this feature here.
Merged : ).
(1) Add the
device
attribute to conditional-logit and nested-logit models, (2) add the device information to the__str__
method as well; and (3) add theto()
method to these models for easier moving them between CPU and GPU.