self.bidirectional=bidirectional deffeed(self, x): ''' :param x: [seq, batch_size, embedding] :return: out, hidden ''' # x.shape [sep, batch, feature] # hidden.shape [hidden_size, batch] # Whh0.shape [hidden_size, hidden_size] Wih0.shape [hidden_size, feature] ...
www.dbjr.com.cn/article/2066...htm 2025-6-7