LSTM has a pair (tuple) of  (hidden, cell) where GRU/RNN only has hidden. Herr tge pair is hx, cx as part of a tuple hidden.
The documentation or examples show how to go about handling that.
Best regards
Thomas
Best regards
Thomas