提交 9f78a32b authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Fix to a deprication warning in constructing the Op class

上级 75a1ffc5
......@@ -460,7 +460,7 @@ class Op(utils.object2, PureOp, CLinkerOp):
def __new__(cls, *args, **kwargs):
# this function exists to silently and transparently ensure that all
# existing Ops get a _op_use_c_code attribute
obj = object.__new__(cls, *args, **kwargs)
obj = object.__new__(cls)
if not hasattr(obj, '_op_use_c_code'):
obj._op_use_c_code = True
return obj
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论