We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 556a6e2 commit e955f44Copy full SHA for e955f44
pymc/model/core.py
@@ -1241,7 +1241,7 @@ def register_rv(
1241
self.add_named_variable(rv_var, dims)
1242
self.set_initval(rv_var, initval)
1243
else:
1244
- if total_size is None and isinstance(node, TensorVariable):
+ if total_size is None and isinstance(observed, TensorVariable):
1245
for node in ancestors([observed]):
1246
if node.owner is not None and isinstance(node.owner.op, MinibatchOp):
1247
warnings.warn(
0 commit comments