RNNBase¶
- class torch.nn.RNNBase(mode, input_size, hidden_size, num_layers=1, bias=True, batch_first=False, dropout=0.0, bidirectional=False, proj_size=0, device=None, dtype=None)[source]¶
Base class for RNN modules (RNN, LSTM, GRU).
Implements aspects of RNNs shared by the RNN, LSTM, and GRU classes, such as module initialization and utility methods for parameter storage management.
Note
The forward method is not implemented by the RNNBase class.
Note
LSTM and GRU classes override some methods implemented by RNNBase.