(myerror)TypeError: forward() takes 2 positional arguments but 3 were given

Is this a double post from here with an already provided solution or what would be the difference in this code snippet?