The will give you exactly the same result (up to float numerical precision).
The one based on autograd might use less memory and be slightly faster if you have a spacial backward that is more efficient than the automatically generated one. But it is usually not recommended to do it as it is more complex and more error prone.