Esempio n. 1
0
	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
Esempio n. 2
0
	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
Esempio n. 3
0
		def __init__(self, nodes):
			_Nodes.__init__(self, nodes)
			Node._Trace.__init__(self)
Esempio n. 4
0
		def __init__(self, nodes, paths):
			_Nodes.__init__(self, nodes)
			_Paths.__init__(self, paths)
			Node._State._Memory.__init__(self)
Esempio n. 5
0
		def __init__(self, nodes):
			_Nodes.__init__(self, nodes)
			Node._State._Rate.__init__(self)
Esempio n. 6
0
		def __init__(self, nodes):
			_Nodes.__init__(self, nodes)
			Node._State._Gradient.__init__(self)
Esempio n. 7
0
		def __init__(self, nodes, paths):
			_Nodes.__init__(self, nodes)
			_Paths.__init__(self, paths)
			Node._State._Error.__init__(self)