提交 213288c7 authored 作者: Frederic Bastien's avatar Frederic Bastien

seed the random generator to be able to reproduice the error. The buildbot use a…

seed the random generator to be able to reproduice the error. The buildbot use a different seed each day in debug mode and record the seed used.
上级 dd81cc34
import sys, time
from theano.compile.sharedvalue import shared
from theano.compile.pfunc import pfunc from theano.compile.pfunc import pfunc
from theano import tensor from theano import tensor
from theano.tests import unittest_tools
import numpy import numpy
...@@ -165,7 +164,8 @@ def test_downsample(): ...@@ -165,7 +164,8 @@ def test_downsample():
(30, 2, 24, 24), (30, 2, 24, 24),
(30, 6, 24, 24), (30, 6, 24, 24),
(10, 10, 10, 11)] (10, 10, 10, 11)]
random.shuffle(shps)
numpy.random.RandomState(unittest_tools.fetch_seed()).shuffle(shps)
for shp in shps: for shp in shps:
for ds in (2, 2), (3,2), (1,1): for ds in (2, 2), (3,2), (1,1):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论