提交 fa0cb5d5 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

raise exception if the constant value is wrong

上级 23529385
......@@ -845,6 +845,8 @@ def _populate_grad_dict(var_to_node_to_idx,
msg % (str(node.op), str(term), str(type(term)),
i, str(constant_value))
raise ValueError(msg)
#Check that op.connection_pattern matches the connectivity
#logic driving the op.grad method
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论