create two instances. As example:
class decoder(nn.Module):
            #code
class encoder(nn.Module):
            #code

#first autoencoder
encoder1=encoder()
decoder1=decoder()

#second autoencoder
encoder2=encoder()
decoder2=decoder()