提交 402bba51 authored 作者: Sina Honari's avatar Sina Honari

adding a unit test for theano.tensor.constant reshape

上级 f646ff7c
...@@ -5052,6 +5052,9 @@ class T_reshape(utt.InferShapeTester, utt.TestOptimizationMixin): ...@@ -5052,6 +5052,9 @@ class T_reshape(utt.InferShapeTester, utt.TestOptimizationMixin):
f = self.function([x], x.reshape((0, 100))) f = self.function([x], x.reshape((0, 100)))
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):
theano.tensor.constant([1]).reshape(())
def test_make_column_matrix_broadcastable(): def test_make_column_matrix_broadcastable():
# The goal of the operation made by `b` is to ensure the second dimension # The goal of the operation made by `b` is to ensure the second dimension
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论