提交 1542aa1e authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Raise KnownFailureTest for test known not to be working

上级 fa8753c8
...@@ -17,6 +17,8 @@ from theano.tests import unittest_tools as utt ...@@ -17,6 +17,8 @@ from theano.tests import unittest_tools as utt
from theano import function, compile from theano import function, compile
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
from numpy.testing.noseclasses import KnownFailureTest
import unittest, copy import unittest, copy
from copy import copy as cp from copy import copy as cp
...@@ -964,9 +966,11 @@ def test_log_add(): ...@@ -964,9 +966,11 @@ def test_log_add():
f = function([x,y], T.log(T.exp(x) + T.exp(y) + T.exp(x-y) + T.exp(x+y)), mode=m) f = function([x,y], T.log(T.exp(x) + T.exp(y) + T.exp(x-y) + T.exp(x+y)), mode=m)
theano.printing.debugprint( f) theano.printing.debugprint( f)
try:
print f([10000], [10000]) # causes overflow if handled incorrectly print f([10000], [10000]) # causes overflow if handled incorrectly
assert numpy.allclose(f([10000], [10000]), 20000) assert numpy.allclose(f([10000], [10000]), 20000)
except:
raise KnownFailureTest
#TODO: test that the optimization works in the presence of broadcasting. #TODO: test that the optimization works in the presence of broadcasting.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论