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

The sample notebook doesn't work on machines with CUDA capability #150

Open
ceshine opened this issue Feb 15, 2021 · 0 comments
Open

The sample notebook doesn't work on machines with CUDA capability #150

ceshine opened this issue Feb 15, 2021 · 0 comments

Comments

@ceshine
Copy link

ceshine commented Feb 15, 2021

I got this error when trying to run the Introspective Rationale Explainer Sample Notebook:

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

After some preliminary investigation, the problem seems to be this line. It ignores the self.args.cuda parameter and decides whether to put the z mask purely based on where CUDA is available.

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

No branches or pull requests

1 participant