提交 1bc1c0fa authored 作者: Frederic's avatar Frederic 提交者: Arnaud Bergeron

Remove deprecated comment

上级 233e7813
...@@ -171,11 +171,6 @@ class OpFromGraph(gof.Op): ...@@ -171,11 +171,6 @@ class OpFromGraph(gof.Op):
return ret return ret
def grad(self, inputs, output_grads): def grad(self, inputs, output_grads):
# OpFromGraph doesn't implement a connection_pattern, so for
# now we regard all inputs and outputs as connected. This will
# compute the right numerical value for the gradients but
# could fail to raise the disconnected inputs error in some
# cases.
if hasattr(self, "grad_ops"): if hasattr(self, "grad_ops"):
grad_ops = self.grad_ops grad_ops = self.grad_ops
else: else:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论