I want to build an autoencoder, where the encoder is made of biGRU to learn the representation of each input time sequence, i.e., mapping the input from sequenceNumber*sequenceLength*dim1 to sequenceNumber*dim2; the decoder should map it back to the input dimension. Implement the autoencoder in pytorch