Why are we not initializing the parent class?

Hey ! In part 2 lesson 8 why are we not initializing the parent module class as we always do ?

Because the Parent Class and Child class methods are asynchronous. We are not overriding or overloading anything. For nn.Module it has to set up a lot of things like the backward graph, GPU computations, etc, So super().init() must be used so that all the setup is done before hand. Here our ‘Module’ has nothing to do with these. it just has a call function which calls our child class’s method that’s it.This is a very simplistic model which gives us intuition about the nn.Module’s activity, that’s it…

I understood most of it,
Thanks !

1 Like

Your Welcome :innocent: