InferPy icon indicating copy to clipboard operation
InferPy copied to clipboard

Wrong sample_shape when name is given

Open rcabanasdepaz opened this issue 4 years ago • 0 comments

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 avatar Jul 11 '20 17:07 rcabanasdepaz