Esempio n. 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_)
Esempio n. 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_)