def __init__(self, isizes, osizes, **kwargs): _Nodes.__init__(self) _Paths.__init__(self) Node.__init__(self, isizes, osizes, **kwargs) self.ipaths = [None]*self.inum self.opaths = [None]*self.onum self._flink = {} self._blink = {} self.order = None
def __init__(self, node, nodes, paths): _Nodes.__init__(self, nodes) _Paths.__init__(self, paths) self._srcs = [None]*node.inum self._dsts = [None]*node.onum Node._Context.__init__(self, node) Loss._Context.__init__(self) for path, arr in zip(self.node.paths, self.paths): src = path.src dst = path.dst self.nodes[src[0]].dsts[src[1]] = arr self.nodes[dst[0]].srcs[dst[1]] = arr
def __init__(self, nodes, paths): _Nodes.__init__(self, nodes) _Paths.__init__(self, paths) Node._State._Memory.__init__(self)
def __init__(self, nodes, paths): _Nodes.__init__(self, nodes) _Paths.__init__(self, paths) Node._State._Error.__init__(self)