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

Rename TensorType's broadcastable constructor keyword argument to shape #5350

Conversation

brandonwillard
Copy link
Contributor

This PR makes necessary changes in response to aesara-devs/aesara#711. It won't pass until the next minor version release is made containing the changes from aesara-devs/aesara#711.

accu = aesara.shared(
np.zeros(value.shape, dtype=value.dtype), broadcastable=param.broadcastable
)
accu = aesara.shared(np.zeros(value.shape, dtype=value.dtype), shape=param.broadcastable)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
accu = aesara.shared(np.zeros(value.shape, dtype=value.dtype), shape=param.broadcastable)
accu = aesara.shared(np.zeros(value.shape, dtype=value.dtype), shape=param.shape)

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but we don't need to make those kinds of changes (yet), because shape is backward compatible with broadcastable (i.e. it takes a list of bools that yields the same results).

@Armavica
Copy link
Member

I believe that this PR is entirely included in #6059. Sorry, I am just discovering this draft PR.

@ricardoV94
Copy link
Member

Perfect!

@ricardoV94 ricardoV94 closed this Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants