Solved by tom in post #2 
              
              
                No! This is decidedly not good style. You are trading conceptual simplicity for saving a few characters (6 instead of 12). 
Now, what you can do if your forward uses self.weights so often that you don’t want to spell it? 
I think a perfectly good solution is to do a local assignment W = self.weight…