提交 2802ac1b authored 作者: Sina Honari's avatar Sina Honari

improving test

上级 402bba51
...@@ -5053,7 +5053,9 @@ class T_reshape(utt.InferShapeTester, utt.TestOptimizationMixin): ...@@ -5053,7 +5053,9 @@ class T_reshape(utt.InferShapeTester, utt.TestOptimizationMixin):
assert f(numpy.ndarray((0,), dtype='float32')).shape == (0, 100) assert f(numpy.ndarray((0,), dtype='float32')).shape == (0, 100)
def test_empty_shp(self): def test_empty_shp(self):
theano.tensor.constant([1]).reshape(()) const = theano.tensor.constant([1]).reshape(())
f = function([], const)
assert f().shape == ()
def test_make_column_matrix_broadcastable(): def test_make_column_matrix_broadcastable():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论