it doesn’t look like you copied the code as-is:
optimizer = optim.SGD(Network.parameters(), lr=0.001, momentum=0.9)

This line is not in the tutorial, the line in the tutorial is:
optimizer = optim.SGD(net.parameters(), lr=0.01)

Here net is an object of the class Net, and maybe in your case Network is a class and not an object.