ya sorry, I should have included the whole code. So my actual nn class looks like this for example
class LogReg(nn.Module):
    def __init__(self):
        super(LogReg, self).__init__()
        self.lin1 = nn.Linear(4, 2)

I was browsing through examples on how to implement the forward(), and I was seeing both versions on different models, but was confused about the difference