Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytensor/link/numba/dispatch/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def random_fn(rng, loc, scale):
def numba_core_CauchyRV(op, node):
@numba_basic.numba_njit
def random(rng, loc, scale):
return (loc + rng.standard_cauchy()) / scale
return loc + scale * rng.standard_cauchy()

return random

Expand Down
4 changes: 2 additions & 2 deletions tests/link/numba/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def test_aligned_RandomVariable(rv_op, dist_args, size):
),
(
pt.dscalar(),
np.array(1.0, dtype=np.float64),
np.array(3.0, dtype=np.float64),
),
],
(2,),
Expand All @@ -585,7 +585,7 @@ def test_aligned_RandomVariable(rv_op, dist_args, size):
),
(
pt.dscalar(),
np.array(1.0, dtype=np.float64),
np.array(4.0, dtype=np.float64),
),
],
(2,),
Expand Down
Loading