提交 509d06b8 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

removed a unit test that caught a bug specific to the old interface

上级 e3c61377
...@@ -369,17 +369,6 @@ class test_grad(unittest.TestCase): ...@@ -369,17 +369,6 @@ class test_grad(unittest.TestCase):
# If we made it to here without an exception, then the # If we made it to here without an exception, then the
# connection_pattern functionality worked correctly # connection_pattern functionality worked correctly
def test_sum_disconnected(self):
# Tests that we can add DisconnectedType to other terms correctly
x = theano.tensor.scalar()
y = x * 2.
z = x + 1.
cost = y + z
theano.tensor.grad(cost, x, consider_constant=[y, z])
# In an earlier version of theano, the above line would have failed
# while trying to add two DisconnectedTypes
def test_output_grad_on_int(self): def test_output_grad_on_int(self):
# If the g_cost argument is specified when x has a discrete dtype, # If the g_cost argument is specified when x has a discrete dtype,
# g_cost should be equivalent to 0. # g_cost should be equivalent to 0.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论