Beispiel #1
0
 def activate(self, inpt):
     inpt.shape = self.shape
     inpt_ = permuteToBlocks(inpt, self.blockshape)
     inpt.shape = scipy.size(inpt),
     return super(_Mdrnn, self).activate(inpt_)
Beispiel #2
0
 def activate(self, inpt):
     inpt.shape = self.shape
     inpt_ = permuteToBlocks(inpt, self.blockshape)
     inpt.shape = (scipy.size(inpt),)
     return super(_Mdrnn, self).activate(inpt_)