How to quantize a model with both CNN and LSTM

we don’t have a tutorial yet. Are you using eager mode quantization? if so LSTM is supported by default, you can follow the original flow: (beta) Static Quantization with Eager Mode in PyTorch — PyTorch Tutorials 2.1.1+cu121 documentation

fx graph mode quantization is not fully supporting static quantization for LSTM yet I think