Skip to content

Wrong sample_shape when name is given  #209

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions