Skip to content

Wrong sample_shape when name is given  #209

@rcabanasdepaz

Description

@rcabanasdepaz

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]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions