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

Add reshape_infer procedure #646

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

AngelEzquerra
Copy link
Contributor

Unlike numpy, reshape does not support having dimensions with value -1 to infer their value. To do so a new reshape_infer is added.

This is added as a separate procedure to avoid the (small) cost this adds on top of the usual reshape (which could be called relatively frequently).

Unlike numpy, `reshape` does not support having dimensions with value -1 to infer their value. To do so a new `reshape_infer` is added.

This is added as a separate procedure to avoid the (small) cost this adds on top of the usual reshape (which could be called relatively frequently).
@Vindaar
Copy link
Collaborator

Vindaar commented Apr 15, 2024

Cool, that's useful indeed!

@Vindaar Vindaar merged commit d21362a into mratsim:master Apr 15, 2024
6 checks passed
@AngelEzquerra AngelEzquerra deleted the reshape_infer branch April 15, 2024 16: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