提交 4ccf9932 authored 作者: notoraptor's avatar notoraptor

Temporarly set hardcoded seed from unittests.rseed for TestMagma.test_gpu_matrix_inverse.

上级 ca67816b
......@@ -214,7 +214,8 @@ class TestMagma(unittest.TestCase):
N = 1000
# We reload RNG here to get a specific failing case with seed = 17.
# NB: It seems we don't even need unittests.rseed nor utt.seed_rng().
test_rng = np.random.RandomState(seed=17)
seed = int(theano.config.unittests.rseed)
test_rng = np.random.RandomState(seed=seed)
# Copied from theano.tensor.tests.test_basic.rand.
A_val = test_rng.rand(N, N).astype('float32') * 2 - 1
A_val_inv = fn(A_val)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论