interpret-text icon indicating copy to clipboard operation
interpret-text copied to clipboard

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

Open ceshine opened this issue 4 years ago • 0 comments

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.

ceshine avatar Feb 15 '21 06:02 ceshine