Skip to content

Move curent_mask to perturbed tensor device #1245

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

Closed
wants to merge 1 commit into from

Conversation

yucu
Copy link
Contributor

@yucu yucu commented Mar 15, 2024

Summary: Currently FeaturePermutation and FeatureAblation both throw a device mismatch issue in https://fburl.com/code/9mfuidf4 because the current_mask is always created on CPU and never moved to the same device as expanded_input when CUDA is available.

Reviewed By: cyrjano

Differential Revision: D54969675

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54969675

Summary:

Currently `FeaturePermutation` and `FeatureAblation` both throw a device mismatch issue in https://fburl.com/code/9mfuidf4 because the `current_mask` is always created on CPU and never moved to the same device as `expanded_input` when CUDA is available.

Reviewed By: cyrjano, vivekmig

Differential Revision: D54969675
@yucu yucu force-pushed the export-D54969675 branch from c3c285d to 5bc444b Compare March 18, 2024 21:04
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54969675

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 949ec60.

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

Successfully merging this pull request may close these issues.

2 participants