Implement AdaNet with GRU, LSTM

I am currently working on AdaNet; I applied the simple DNN model on hate speech detection but didn’t perform well; I tried to use GRU and LSTM but still got errors. can anyone guide me? I can share the code with anyone who is interested.