提交 aba6052e authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix critical problem in the __props__ implementation.

This breaks all ops that use it otherwise.
上级 140ef0b4
...@@ -650,7 +650,7 @@ class Op(utils.object2, PureOp, CLinkerOp): ...@@ -650,7 +650,7 @@ class Op(utils.object2, PureOp, CLinkerOp):
self._op_use_c_code = use_c_code self._op_use_c_code = use_c_code
def _props(self): def _props(self):
return (getattr(self, a) for a in self.__props__) return tuple(getattr(self, a) for a in self.__props__)
def __hash__(self): def __hash__(self):
if hasattr(self, '__props__'): if hasattr(self, '__props__'):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论