提交 f36165f0 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

return a copy of the list instead of the original list

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