def forward(self, x):
   out = self.conv1(out)
   out = self.conv2(out)
   out = self.conv3(out)
   
   out = x.reshape(x.size(0), -1)

   out = self.fc1(out)


I changed the model to use sequential layers however i am getting the error:

local variable ‘out’ referenced before assignment

Sorry to bother you I am at a loss