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

Split apart broadcast_shape so that it can work with many arguments #125

Merged

Conversation

brandonwillard
Copy link
Member

This PR fixes a limitation brought about by the use of Python's varargs: broadcast_shape is limited in the number of arrays/shapes that can be processed/given. In this PR, a broadcast_shape_iter is introduced, and it takes a collection of arrays/shapes and—as a result—doesn't face this restriction.

If we use Python varargs, we're limited in the number of arrays/shapes that can
be processed/given.  Now, there's a `broadcast_shape_iter` that takes a
collection of arrays/shapes and doesn't face this restriction.
@brandonwillard brandonwillard added the enhancement New feature or request label Oct 22, 2020
@brandonwillard brandonwillard self-assigned this Oct 22, 2020
@brandonwillard brandonwillard merged commit ead9e37 into aesara-devs:master Oct 22, 2020
@brandonwillard brandonwillard deleted the extend-broadcast_shape-args branch October 22, 2020 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant