示例#1
0
 def getDecoders(self):
     neurons = self._parent.nodes[0].neurons
     decoders = MU.zero(neurons * len(self._origins), self._dimensions)
     for i, o in enumerate(self._origins):
         MU.copyInto(o.decoders, decoders, i * neurons, i * o.dimensions,
                     neurons)
     return decoders
示例#2
0
 def getEncoders(self):
     neurons = self.nodes[0].neurons
     encoders = MU.zero(self.neurons, self.dimension)
     for i, n in enumerate(self.nodes):
         MU.copyInto(n.encoders, encoders, i * neurons, i * n.dimension,
                     neurons)
     return encoders
示例#3
0
文件: array.py 项目: hunse/nengo_1.4
 def getDecoders(self):
     neurons=self._parent.nodes[0].neurons
     decoders=MU.zero(neurons*len(self._origins),self._dimensions)
     for i,o in enumerate(self._origins):
         MU.copyInto(o.decoders,decoders,i*neurons,i*o.dimensions,neurons)       
     return decoders            
示例#4
0
文件: array.py 项目: hunse/nengo_1.4
 def getEncoders(self):  
     neurons=self.nodes[0].neurons
     encoders=MU.zero(self.neurons,self.dimension)
     for i,n in enumerate(self.nodes):
         MU.copyInto(n.encoders,encoders,i*neurons,i*n.dimension,neurons)       
     return encoders