Why is nn.Module not a decorator?

class Net():

why do we not have this?

I’m not sure what the benefits would be, as you would still need to override the usual methods (__init__ and forward). Could you elaborate a bit on this topic?

I got idea by listening that decorators are replacing inheritance in PyCon 2019 talk.

some reasons are listed here -