Skip to content

Commit

Permalink
Use initial instead of testval internally
Browse files Browse the repository at this point in the history
Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>
  • Loading branch information
michaelosthege and OriolAbril authored Jun 4, 2021
1 parent 8bdc225 commit 7e747f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc3/distributions/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ def __new__(
)
dims = convert_dims(dims)

# Create the RV without specifying testval, because the testval may have a shape
# Create the RV without specifying initval, because the initval may have a shape
# that only matches after replicating with a size implied by dims (see below).
rv_out = cls.dist(*args, rng=rng, testval=None, **kwargs)
rv_out = cls.dist(*args, rng=rng, initval=None, **kwargs)
ndim_actual = rv_out.ndim
resize_shape = None

Expand Down

0 comments on commit 7e747f2

Please sign in to comment.