What does the backward() function do?

Thank you for your response.
I explained my confusion with loss.backward() in another topic.