(self)
Return all hidden states/cells, for decoding purpose
Return all hidden states/cells, for decoding purpose
Return all hidden states / cells for decoding purpose
def get_state(self):
        ''' Return all hidden states/cells, for decoding purpose'''
        if self.enable_cell:
            return (self.hidden_state[0].cpu(), self.hidden_state[1].cpu())
        else:
            return self.hidden_state.cpu()
def get_state ( self ) : if self . enable_cell : return ( self . hidden_state [ 0 ] . cpu ( ) , self . hidden_state [ 1 ] . cpu ( ) ) else : return self . hidden_state . cpu ( )