Skip to content

Commit d11fae7

Browse files
committed
Propagate Op name to SymbolicRandomVariables
1 parent 937905c commit d11fae7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymc/distributions/distribution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def __init__(
372372
kwargs.setdefault("strict", True)
373373
# Many RVS have a size argument, even when this is `None` and is therefore unused
374374
kwargs.setdefault("on_unused_input", "ignore")
375+
if hasattr(self, "name"):
376+
kwargs.setdefault("name", self.name)
375377
super().__init__(*args, **kwargs)
376378

377379
def make_node(self, *inputs):

0 commit comments

Comments
 (0)