Caffe2 - Python API
A deep learning, cross platform ML framework
lstm_flattening_result.py
1 from torch import nn
2 
3 
4 class LstmFlatteningResult(nn.LSTM):
5  def forward(self, input, *fargs, **fkwargs):
6  output, (hidden, cell) = nn.LSTM.forward(self, input, *fargs, **fkwargs)
7  return output, hidden, cell