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

Fixing bug where repe algo is patching in ndarray instead of tensors #55

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

chanind
Copy link
Collaborator

@chanind chanind commented Jan 10, 2024

This PR fixes a bug where we're patching ndarray elements into ModelPatcher instead of tensors. This is because it turns out that RepReadingPipeline.get_directions() retuns ndarray when it calculates PCA. This PR addresses this by explicitly converting to FloatTensor before attempting to patch.

@chanind chanind requested a review from dtch1997 January 10, 2024 13:34
@dtch1997 dtch1997 merged commit 7bdc280 into main Jan 10, 2024
2 checks passed
@chanind chanind deleted the fix-rep-algo-ndarray branch January 10, 2024 14:04
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

Successfully merging this pull request may close these issues.

2 participants