I have run the model with LSTM as the first layer successfully. But out of curiosity, I replace LSTM with CuDNNLSTM. But after model.fit, it replied the following error mess
I Installed tensorflow and keras using conda in the Virtual env and this solved it.
conda install tensorflow conda install keras