提交 15b5153e authored 作者: Frederic Bastien's avatar Frederic Bastien

remove a test that fail for not implemented feature as the original case is now…

remove a test that fail for not implemented feature as the original case is now tested in other tests
上级 5b62580b
...@@ -105,28 +105,3 @@ def test_may_share_memory_cuda(): ...@@ -105,28 +105,3 @@ def test_may_share_memory_cuda():
raise Exception("An error was expected") raise Exception("An error was expected")
except TypeError: except TypeError:
pass pass
def test_grad_sqrt_sum():
"""
This trigered a bug in the past.
"""
I = T.ftensor4().reshape((1,1,28,28))
W = cuda.shared_constructor(numpy.asarray(
numpy.random.random((1,1,10,10)),dtype='float32'))
C = T.sqrt(T.sum(W[:,:,1:1,1:1]**2))# This line was causing a bug.
#C = T.sqrt(T.sum(W[:,:,1:2,1:2]**2))# This line work
g = T.grad(C, W)
bog = theano.function([I], C,
updates = {W:W-g}, mode=mode_with_gpu)
theano.printing.debugprint(bog)
print bog.maker.env.toposort()
print "BEFORE"
bog(numpy.asarray(numpy.ones((1,1,28,28)),dtype='float32'))
print "AFTER"
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论