Solved by ptrblck in post #2 
              
              
                You cannot call nn.ModuleLists directly and should iterate them instead. 
I guess you would like to use nn.Sequential instead as shown in this code: 
class MancalaModel(nn.Module):

    def __init__(self, n_inputs=16, n_outputs=16):
        super().__init__()

        n_neurons = 256

        def cr…