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

Generalize the type interface to tensor.zeros #28

Merged

Conversation

brandonwillard
Copy link
Member

@brandonwillard brandonwillard commented Aug 24, 2020

This PR allows all sequence/array types as arguments to tt.zeros and tt.ones. For example, with these changes one can now pass NumPy arrays as the shape argument to both functions, and prevents reasonable expectations like this from raising cryptic exceptions.

@brandonwillard brandonwillard self-assigned this Aug 24, 2020
@brandonwillard brandonwillard added the enhancement New feature or request label Aug 24, 2020
twiecki
twiecki previously approved these changes Aug 24, 2020
@brandonwillard brandonwillard merged commit 91e20cc into aesara-devs:master Aug 28, 2020
@brandonwillard brandonwillard deleted the generalize-zeros-interface branch August 28, 2020 15:25
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

2 participants