Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Saliency map for multiple GPUs #7

Open
huygens12 opened this issue Feb 25, 2020 · 1 comment
Open

Saliency map for multiple GPUs #7

huygens12 opened this issue Feb 25, 2020 · 1 comment

Comments

@huygens12
Copy link

huygens12 commented Feb 25, 2020

Hi, thanks for this amazing repo!

I've encountered an issue while using multiple GPUs to generate saliency maps with torchray.attribution. My model is wrapped in torch.nnDataParallel and I'm trying to use 4 GPUs. However, when the batch_size is set to be 4*m, the first dimension is returned saliency map is always m. I've checked the code, and it seems this issue occurs in class Probe in common.py. It seems that it probes gradient in one device. Do you have any ideas on solving this problem?

@ruthcfong
Copy link

Hi @huygens12,

Sorry for the delayed reply. Currently, multiple GPUs is not supported. I'd recommend moving the model to a single GPU. We may look into supporting multiple GPUs in the future.

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

No branches or pull requests

2 participants