Simple right to left GRU implementation

I got a a matrix of word embeddings with dimensions (sentence_length x embedding_dim).

My question is how can implement a GRU that goes from right to left and produce as an output a matrix with all the hidden states? Something like this:

H = {h_n, h_{n-1}, ... h_1}

right to left is almost the same as left-to-right, right? After reversing your inputs, you can send them through a normal GRU: https://pytorch.org/docs/master/nn.html?highlight=grucell#torch.nn.GRUCell