Solved by ptrblck in post #2 
              
              
                You could remove the super(Encoder, self).__init__(). 
Generally you could inherit from multiple classes, but I think it would be easier to just register the Modules in EncoderDecoder: 
class Encoder(nn.Module):
    def __init__(self):
        super(Encoder, self).__init__()
        self.enc = nn.Li…