Skip to content
RED SAGSkills
medium10 pts · first answer countsdeep-learningpytorch

Forgetting super().__init__()

What goes wrong with this module?

class Net(nn.Module):
    def __init__(self):
        self.fc = nn.Linear(10, 2)

    def forward(self, x):
        return self.fc(x)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions