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
>model.recompute_initial_point()
pymc/tests/test_initial_point.py:74:
________________________________________________________________________________________________pymc/model.py:945: inrecompute_initial_pointfn=make_initial_point_fn(model=self, return_transformed=True)
pymc/initial_point.py:185: inmake_initial_point_fngraph.replace_all(zip(rng_nodes, new_rng_nodes), import_missing=True)
../../.pyenv/versions/3.8.7/envs/pymc3/lib/python3.8/site-packages/aesara/graph/fg.py:554: inreplace_allself.replace(var, new_var, **kwargs)
../../.pyenv/versions/3.8.7/envs/pymc3/lib/python3.8/site-packages/aesara/graph/fg.py:515: inreplacenew_var=var.type.filter_variable(new_var, allow_convert=True)
________________________________________________________________________________________________self=RandomStateType, other=RandomStateSharedVariable(<RandomState(PCG64) at0x7FEE7A091240>), allow_convert=Truedeffilter_variable(
self, other: Union[Variable, D], allow_convert: bool=True
) ->Variable:
r"""Convert a symbolic variable into this `Type`, if compatible. For the moment, the only `Type`\s compatible with one another are `TensorType` and `GpuArrayType`, provided they have the same number of dimensions, same broadcasting pattern, and same dtype. If `Type`\s are not compatible, a ``TypeError`` should be raised. """ifnotisinstance(other, Variable):
# The value is not a Variable: we cast it into# a Constant of the appropriate Type.other=self.Constant(type=self, data=other)
ifother.type!=selfandallow_convert:
other2=self.convert_variable(other)
ifother2isnotNone:
returnother2ifother.type!=self:
>raiseTypeError(
"Cannot convert Type %(othertype)s ""(of Variable %(other)s) into Type %(self)s. ""You can try to manually convert %(other)s into a %(self)s."%dict(othertype=other.type, other=other, self=self)
)
ETypeError: CannotconvertTypeRandomStateType (ofVariableRandomStateSharedVariable(<RandomState(PCG64) at0x7FEE7A091240>)) intoTypeRandomStateType. YoucantrytomanuallyconvertRandomStateSharedVariable(<RandomState(PCG64) at0x7FEE7A091240>) intoaRandomStateType.
Recompute_test_point fails after pickling
Please provide a minimal, self-contained, and reproducible example.
Please provide the full traceback.
Complete error traceback
Related to #4582
Versions and main components
The text was updated successfully, but these errors were encountered: