-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GroupLinearLayer should add "device" parameter #7
Comments
HI @ildefons, could you share the error message with device='cuda'? |
Error message:RuntimeError Traceback (most recent call last) ~\anaconda3\envs\eg2\lib\site-packages\torch\nn\modules\module.py in call(self, *input, **kwargs) ~\OneDrive\Documentos\YK\eg\Recurrent-Independent-Mechanisms\RIM.py in forward(self, x, hs, cs) ~\OneDrive\Documentos\YK\eg\Recurrent-Independent-Mechanisms\RIM.py in input_attention_mask(self, x, h) ~\anaconda3\envs\eg2\lib\site-packages\torch\nn\modules\module.py in call(self, *input, **kwargs) ~\OneDrive\Documentos\YK\eg\Recurrent-Independent-Mechanisms\RIM.py in forward(self, x) RuntimeError: Expected object of device type cuda but got device type cpu for argument #2 'mat2' in call to _th_bmm |
Hi RIM dev team,
Code fails when device = 'cuda'
It can be easily solved adding an extra parameter "device" to all "Group" classes.
Thank you for the great RIM implementation,
Ildefons
The text was updated successfully, but these errors were encountered: