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

Use CPU implementation of function but GPU for all other operations #635

Closed
chaitanyamalaviya opened this issue Jun 27, 2017 · 1 comment

Comments

@chaitanyamalaviya
Copy link

Hi everyone,

Is there a way to use the CPU implementation of a function while still using GPU for the remaining dynet operations?

[When I use a function that does not have a GPU implementation and set the dynet-gpu flag, I get an error saying 'module' object has no attribute '<the_function_name>'. ]

@chaitanyamalaviya chaitanyamalaviya changed the title Use CPU implementation of function Use CPU implementation of function with GPU for all other operations Jun 27, 2017
@chaitanyamalaviya chaitanyamalaviya changed the title Use CPU implementation of function with GPU for all other operations Use CPU implementation of function but GPU for all other operations Jun 27, 2017
@neubig
Copy link
Contributor

neubig commented Jun 28, 2017

This is a good idea, but is basically reliant on multi-device support: #92

I'll close this as it's essentially a duplicate but I agree that this is important functionality to have.

@neubig neubig closed this as completed Jun 28, 2017
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

2 participants