Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit c2ed818

Browse files
rloufbrandonwillard
authored andcommitted
Remove unnecessary cloning of NoneConst variable
1 parent 78706bd commit c2ed818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aesara/tensor/random/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ def __call__(self, a, size=None, replace=True, p=None, **kwargs):
17921792
a = aesara.tensor.arange(a)
17931793

17941794
if p is None:
1795-
p = aesara.tensor.type_other.NoneConst.clone()
1795+
p = aesara.tensor.type_other.NoneConst
17961796

17971797
if isinstance(replace, bool):
17981798
replace = aesara.tensor.constant(np.array(replace))

0 commit comments

Comments
 (0)