Submitted by AutoModerator t3_xznpoh in MachineLearning
ThrowThisShitAway10 t1_iso6km8 wrote
Reply to comment by ABCDofDataScience in [D] Simple Questions Thread by AutoModerator
This is a feature of Python, not just PyTorch. We use the super function because we want our class to inherit the attributes of it's parent. For your PyTorch module to work, you have to inherit from the nn.Module class. It's not a big deal
Viewing a single comment thread. View all comments