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

use vmap instead of list comprehension in real space projection code #56

Open
alisterburt opened this issue Jan 15, 2024 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@alisterburt
Copy link
Member

images = [_project_volume(matrix)[yl:yh, xl:xh] for matrix in rotation_matrices]

@rsanchezgarc pointed out we should be able to use torch.vmap here rather than the list comprehension

@alisterburt alisterburt added the good first issue Good for newcomers label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant