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 sample_shape when name is given #209

Open
rcabanasdepaz opened this issue Jul 11, 2020 · 0 comments
Open

Wrong sample_shape when name is given #209

rcabanasdepaz opened this issue Jul 11, 2020 · 0 comments
Assignees
Labels

Comments

@rcabanasdepaz
Copy link
Member

Wrong sample_shape when name is given and using size in the data model

import inferpy as inf
import tensorflow as tf

with inf.datamodel(size=100):
    x = inf.Normal(tf.ones(4), 1, name="x")

x.sample_shape  # []

with inf.datamodel(size=100):
    x = inf.Normal(tf.ones(4), 1)
    
    
x.sample_shape  # [100]
@rcabanasdepaz rcabanasdepaz self-assigned this Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant