Solved by ptrblck in post #2 
              
              
                You are creating self.hidden and self.BN as plain Python lists, which won’t work. 
To properly register modules you would need to use nn.ModuleList instead and it’ll work.