Hi,
It’s because self.w is always the same Tensor, and every time you do a forward, you add another hook onto it.
These hooks don’t go away by them selfves so you just have more and more of them here.