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
Just create one on-demand np.random.default_rng(). No need to require it explicitly?
importpytensor.tensorasptfrompytensor.gradientimportverify_gradverify_grad(pt.log, [2.0])
# TypeError: rng should be a valid instance of numpy.random.RandomState. You may want to use tests.unittest_tools.verify_grad instead of pytensor.gradient.verify_grad.
The message is also outdated, as numpy.random.Generator are accepted (and preferred)
The text was updated successfully, but these errors were encountered:
Description
Just create one on-demand
np.random.default_rng()
. No need to require it explicitly?The message is also outdated, as
numpy.random.Generator
are accepted (and preferred)The text was updated successfully, but these errors were encountered: