A very simple pytorch implementation to Ordered Neuron LSTMs.
recurrent_layer = ONLSTM(input_size, hidden_size, num_layers, dropout)
A very simple pytorch implementation to Ordered Neuron LSTMs.
recurrent_layer = ONLSTM(input_size, hidden_size, num_layers, dropout)