LSTM on top of BERT encoding

Hi I am trying to create a LSTM layer on top of BERT and it is giving me an error: input must have 3 dimensions, got 2