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

Wrong broadcastable output of Alloc when using SpecifyShape #692

Closed
ricardoV94 opened this issue Dec 8, 2021 · 0 comments · Fixed by #694
Closed

Wrong broadcastable output of Alloc when using SpecifyShape #692

ricardoV94 opened this issue Dec 8, 2021 · 0 comments · Fixed by #694
Assignees
Labels
bug Something isn't working

Comments

@ricardoV94
Copy link
Contributor

import aesara.tensor as at

constant_size = at.constant([1])
specify_size = at.specify_shape(constant_size, [1])

print(constant_size.type)  # TensorType(int32, (True,))
print(specify_size.type)  # TensorType(int32, (True,))

print(at.alloc(0, *constant_size).type)  # TensorType(int8, (True,))
print(at.alloc(0, *specify_size).type)  # TensorType(int8, vector)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants