提交 1f416f02 authored 作者: goodfeli's avatar goodfeli

Merge pull request #247 from pascanur/Rop_print

implementation of Rop for the Print op
......@@ -140,6 +140,9 @@ class Print(Op):
def grad(self, input, output_gradients):
return output_gradients
def R_op(self, inputs, eval_points):
return [x for x in eval_points]
def __eq__(self, other):
return (type(self) == type(other) and self.message == other.message
and self.attrs == other.attrs)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论