提交 576159c5 authored 作者: Frederic's avatar Frederic

update comment following code review.

上级 19a81347
......@@ -479,7 +479,8 @@ class TestConstructSparseFromList(unittest.TestCase):
g = theano.grad(sub.sum(), t)
assert isinstance(g.owner.op, tensor.AdvancedIncSubtensor1)
# Test that we create a sparse grad when asked
# Test that we raise an error, as we can't create a sparse
# grad from tensors that don't have 2 dimensions.
sub = theano.sparse_grad(sub)
self.assertRaises(TypeError, theano.grad, sub.sum(), t)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论