You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a0 = pt.tensor(name="a0", dtype=floatX, shape=(m,))
/home/jesse/mambaforge/envs/pymc-statespace/lib/python3.11/site-packages/pytensor/tensor/type.py:791: in tensor
raise ValueError(
E ValueError: The first and only positional argument of tensor is now `name`. Got a0.
E This name looks like a dtype, which you should pass as a keyword argument only.
There is a check here in pt.tensor that makes sure we're not passing a dtype as the only argument to pt.vector (for historical reasons I guess?). This is fine, but it shouldn't occur if the dtype is also specified. Fixing this would be as easy as changing the if condition to if name is not None and dtype is not None, since in that case I clearly did not want a0 interpreted as a dtype.
The text was updated successfully, but these errors were encountered:
Description
Fails with the following error:
There is a check here in
pt.tensor
that makes sure we're not passing a dtype as the only argument topt.vector
(for historical reasons I guess?). This is fine, but it shouldn't occur if the dtype is also specified. Fixing this would be as easy as changing theif
condition toif name is not None and dtype is not None
, since in that case I clearly did not wanta0
interpreted as a dtype.The text was updated successfully, but these errors were encountered: