提交 5f4c50b8 authored 作者: Sina Honari's avatar Sina Honari

uncommenting test_tile due to fixing issue 3420

上级 663500a5
...@@ -7161,28 +7161,24 @@ class TestInferShape(utt.InferShapeTester): ...@@ -7161,28 +7161,24 @@ class TestInferShape(utt.InferShapeTester):
[flatten(atens3, 1)], [flatten(atens3, 1)],
[atens3_val], Reshape) [atens3_val], Reshape)
# Reshape.infershape is badly written and therefore all Reshapes are for outdim in (3, 2, 1):
# not removed from atens3.shape after compiling. self._compile_and_check([atens3],
# The following lines should be uncommented afte fixing issue #3420 [flatten(atens3, outdim)],
[atens3_val], Reshape)
#for outdim in (3, 2, 1):
# self._compile_and_check([atens3], amat = matrix()
# [flatten(atens3, outdim)], amat_val = rand(4, 5)
# [atens3_val], Reshape) for outdim in (2, 1):
self._compile_and_check([amat],
#amat = matrix() [flatten(amat, outdim)],
#amat_val = rand(4, 5) [amat_val], Reshape)
#for outdim in (2, 1):
# self._compile_and_check([amat], avec = vector()
# [flatten(amat, outdim)], avec_val = rand(4)
# [amat_val], Reshape) outdim = 1
self._compile_and_check([avec],
#avec = vector() [flatten(avec, outdim)],
#avec_val = rand(4) [avec_val], Reshape)
#outdim = 1
#self._compile_and_check([avec],
# [flatten(avec, outdim)],
# [avec_val], Reshape)
# Eye # Eye
aiscal = iscalar() aiscal = iscalar()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论