Skip to content

Commit e955f44

Browse files
committed
Fix
1 parent 556a6e2 commit e955f44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/model/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ def register_rv(
12411241
self.add_named_variable(rv_var, dims)
12421242
self.set_initval(rv_var, initval)
12431243
else:
1244-
if total_size is None and isinstance(node, TensorVariable):
1244+
if total_size is None and isinstance(observed, TensorVariable):
12451245
for node in ancestors([observed]):
12461246
if node.owner is not None and isinstance(node.owner.op, MinibatchOp):
12471247
warnings.warn(

0 commit comments

Comments
 (0)