Hi,
You should check the doc about nn.Module’s role 79. That should give you a good introduction of what nn.Module (which is the parent class of Conv2D) are for.
Feel free to ask more questions here afterwards.