Open HendrikKlug-synthara opened 2 years ago
Is there any particular reason for that?
Because LSTMCell
uses matmul / linear
under the hood while LSTM
is a separate op. The flop formula for LSTM
ops is not implemented. That's why there is a warning Unsupported operator aten::lstm encountered 1 time(s)
.
Is there a way to run these functions silently without generetaing warnings?
Hello, it seems that LSTM layers are not yet supported for the
fvcore.nn.FlopCountAnalysis
method:gives:
While the same works an LSTM cell:
output:
Is there any particular reason for that? The number of FLOPS of the LSTM layer should be the same than from one LSTM cell times the number of time steps.