提交 0a937a6e authored 作者: James Bergstra's avatar James Bergstra

more informative assertion failure in raw_random

上级 6cc74022
......@@ -191,7 +191,7 @@ class RandomFunction(gof.Op):
# Numbers are drawn from r if self.inplace is True, and from a copy of r if
# self.inplace is False
r, shape, args = inputs[0], inputs[1], inputs[2:]
assert type(r) == numpy.random.RandomState
assert type(r) == numpy.random.RandomState, (type(r), r)
r_orig = r
# If shape == [], that means no shape is enforced, and numpy is
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论