Skip to content
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

cutorch.withDevice() #825

Open
wanghechong opened this issue Apr 27, 2018 · 0 comments
Open

cutorch.withDevice() #825

wanghechong opened this issue Apr 27, 2018 · 0 comments

Comments

@wanghechong
Copy link

wanghechong commented Apr 27, 2018

i initialize the {encoder, decoder} on CPU, but i share the lookupTable's parameters between them, then i do encoder:cuda() on GPU1, i clone the decoder on GPU2 to decoder_clone, i get the decoder's parameters again, and i clone the pararmeters to decoder_clone on GPU2, but when i run the code, the error is lookuptable's parameters on different GPUS。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant