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 02614c8 commit 28a670bCopy full SHA for 28a670b
pymc_experimental/model/transforms/autoreparam.py
@@ -177,7 +177,11 @@ def vip_reparam_node(
177
if not isinstance(node.op, RandomVariable | SymbolicRandomVariable):
178
raise TypeError("Op should be RandomVariable type")
179
_, size, *_ = node.inputs
180
- rv_shape = tuple(size.eval())
+ eval_size = size.eval()
181
+ if eval_size is not None:
182
+ rv_shape = tuple(eval_size)
183
+ else:
184
+ rv_shape = ()
185
lam_name = f"{name}::lam_logit__"
186
_log.debug(f"Creating {lam_name} with shape of {rv_shape}")
187
logit_lam_ = pytensor.shared(
0 commit comments