提交 e992c0e4 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Add test case.

上级 eec4324f
......@@ -197,6 +197,14 @@ class test_Broadcast(unittest.TestCase):
f(xv, yv)
assert (xv == yv).all()
def test_fill_grad(self):
# Fix bug reported at
# https://groups.google.com/d/topic/theano-users/nQshB8gUA6k/discussion
x = TensorType(config.floatX, [0, 1, 0])('x')
y = TensorType(config.floatX, [0, 1, 0])('y')
e = tensor.second(x, y)
theano.grad(e.sum(), y)
def test_weird_strides(self):
if not theano.config.cxx:
raise SkipTest("G++ not available, so we need to skip this test.")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论