InferPy icon indicating copy to clipboard operation
InferPy copied to clipboard

Deterministic IndexError: list index out of range

Open rcabanasdepaz opened this issue 8 years ago • 0 comments

x = inf.models.Deterministic()
x.base_object = ed.models.Normal(0.,1.)

x.sample()

raises the following error:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "./InferPy/inferpy/util/wrappers.py", line 23, in wrapper
    output_tf = f(*args, **kwargs)
  File "./InferPy/inferpy/models/random_variable.py", line 178, in sample
    if self.dim > 1 and self.batches == 1:
  File "./InferPy/inferpy/models/random_variable.py", line 80, in dim
    return self.base_object.shape.as_list()[- (1 + len(self.event_shape)) ]
IndexError: list index out of range


rcabanasdepaz avatar Sep 24 '18 15:09 rcabanasdepaz