micrograd
micrograd copied to clipboard
Fix __rsub and __rtruediv
self should always be the first parameter in all reversed operations, otherwise it'll end up with an infinite recursion :)
This won't cause an infinite recursion, just unnecessary radd and rmul calls. Also, it is a duplicate of https://github.com/karpathy/micrograd/pull/39.