提交 98c0bf5f authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed test that ensures integer division raises an error

上级 24f42f24
...@@ -652,6 +652,7 @@ def test_mixeddiv(): ...@@ -652,6 +652,7 @@ def test_mixeddiv():
d = dscalar() d = dscalar()
try: try:
0 == function([i,d], d*(i/(i+1)))(3, 1.0) 0 == function([i,d], d*(i/(i+1)))(3, 1.0)
assert False
except theano.scalar.IntegerDivisionError: except theano.scalar.IntegerDivisionError:
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论