提交 6a4a598b authored 作者: lamblin's avatar lamblin

Merge pull request #656 from nouiz/test_fix

Test fix
......@@ -262,9 +262,9 @@ def Rop(f, wrt, eval_points):
str(i) +
' of wrt/eval_point have mismatched ' +
'dimensionality: ' +
str(wrt_dim) +
str(wrt_elem.type.ndim) +
' versus ' +
str(eval_dim))
str(eval_point.type.ndim))
except AttributeError:
# wrt_elem and eval_point don't always have ndim like random type
# Tensor, Sparse and CudaNdArray have the ndim attribute
......
......@@ -197,6 +197,7 @@ if __name__ == "__main__":
GTX285/3.0 0.40s
C1060/3.2 0.46s
GTX550Ti/4.0 0.57s
520M/3.2 3.19s with bumblebee on Ubuntu 12.04
GT220/3.2RC 3.80s
GT210/4.0 6.35s
8500GT/3.0 10.68s
......
......@@ -2407,7 +2407,7 @@ class T_Scan(unittest.TestCase):
srng = theano.tensor.shared_randomstreams.RandomStreams(seed)
sl_o = theano.tensor.tanh(theano.tensor.dot(_W, (_u + _y + \
srng.uniform(size=v_h0.shape) *
numpy.float32(1e-6))))
numpy.asarray(1e-6, dtype=floatX))))
return sl_o
u = theano.tensor.matrix('U')
......
......@@ -1268,7 +1268,8 @@ SecondSameRankTester = makeTester(
multi_dtype_checks((4, 5), (5, 4)),
multi_dtype_checks((1, 5), (5, 4)),
)),
mode=get_default_mode().excluding('local_fill_to_alloc')
mode=get_default_mode().excluding('local_fill_to_alloc',
'local_useless_fill')
)
### Alloc
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论