How deal with ' raise NotImplementedError'?

class Net(nn.Module):

def __init__(self):
    super(Net,self).__init__()
    self.fc1=nn.Linear(28*28,256)
    self.fc2=nn.Linear(256,64)
    self.fc3=nn.Linear(64,10)

def forword(self,x):
    x=F.relu(self.fc1(x))
    x=F.relu(self.fc2(x))
    x=self.fc3(x)
    return x

I heard that it is an indentation problem, how can I not find the above two pieces of code?

forwordforward

1 Like

oh,I am so sloppy.Thank you very much for your answer.