提交 d6fc322c authored 作者: Frederic Bastien's avatar Frederic Bastien

removed Apply._creation_idx as this is not usefull anymore and was causing…

removed Apply._creation_idx as this is not usefull anymore and was causing trouble with the unserialization of Apply node for the CompositeOp.
上级 ef3029bb
......@@ -13,8 +13,6 @@ from collections import deque
import utils
_creation_idx = [0]
class Apply(utils.object2):
"""
An :term:`Apply` instance is a node in an expression graph which represents the application
......@@ -84,9 +82,6 @@ class Apply(utils.object2):
else:
raise TypeError("The 'outputs' argument to Apply must contain Variable instances with no owner, not %s" % output)
self._creation_idx = _creation_idx[0]
_creation_idx[0] += 1
def default_output(self):
"""Returns the default output for this node.
......@@ -125,10 +120,6 @@ class Apply(utils.object2):
def __asapply__(self):
return self
def __hash__(self):
return self._creation_idx
def clone(self):
"""Duplicate this Apply instance with inputs = self.inputs.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论