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

GradientShap needs internal_batch_size argument to avoid out-of-memory errors #1350

Open
princyok opened this issue Sep 17, 2024 · 0 comments

Comments

@princyok
Copy link

🐛 Bug

GradientShap (captum.attr.GradientShap.attribute), which is an extension of Integrated Gradients, needs an internal_batch_size argument just like IntegratedGradients.

Currently, using any large value for n_samples results in out-of-memory errors, because the input is stacked n_samples times. The same kind of issue is already fixed in IntegratedGradients via the internal_batch_size argument.

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