g_error = generator_loss(x)
g_error.backward()

Then the error showed:
backward() takes 1 positional argument but 2 were given.
The value of g_error  is tensor([16.8434], grad_fn=)
I want to know the cause of this problem and the way to solve.