提交 51792fea authored 作者: Anatoly Rubanov's avatar Anatoly Rubanov 提交者: Brandon T. Willard

remove assertion

上级 528ee54f
...@@ -427,12 +427,6 @@ def makeSharedTester( ...@@ -427,12 +427,6 @@ def makeSharedTester(
topo_cst[0].op == aesara.compile.function.types.deep_copy_op topo_cst[0].op == aesara.compile.function.types.deep_copy_op
# Test that we can take the grad. # Test that we can take the grad.
if aesara.sparse.enable_sparse and isinstance(
x1_specify_shape.type, aesara.sparse.SparseType
):
# SparseVariable don't support sum for now.
assert not hasattr(x1_specify_shape, "sum")
else:
shape_grad = aesara.gradient.grad(x1_specify_shape.sum(), x1_shared) shape_grad = aesara.gradient.grad(x1_specify_shape.sum(), x1_shared)
shape_constant_fct_grad = aesara.function([], shape_grad) shape_constant_fct_grad = aesara.function([], shape_grad)
# aesara.printing.debugprint(shape_constant_fct_grad) # aesara.printing.debugprint(shape_constant_fct_grad)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论