提交 48112e74 authored 作者: Neel Iyer's avatar Neel Iyer 提交者: Brandon T. Willard

seeding the moved test

上级 13ebc731
...@@ -291,7 +291,8 @@ class TestLogSoftmax(utt.InferShapeTester): ...@@ -291,7 +291,8 @@ class TestLogSoftmax(utt.InferShapeTester):
m.check_isfinite = False m.check_isfinite = False
# some inputs that are large to make the gradient explode in the non # some inputs that are large to make the gradient explode in the non
# optimized case # optimized case
a = np.exp(10 * np.random.random((5, 10)).astype(config.floatX)) rng = np.random.default_rng(98324)
a = np.exp(10 * rng.random((5, 10)).astype(config.floatX))
def myfunc(x): def myfunc(x):
sm = softmax(x) sm = softmax(x)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论