How does PyTorch find every gradient by itself?

· Dev.to