backward member implementation question
Open
- Dominant language
- Jupyter Notebook
- Stars
- 17.6k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
Why can't [this function](https://github.com/karpathy/micrograd/blob/master/micrograd/engine.py#L54) simply be implemented as follows? Am I missing something? We are dealing with a composite structure.
```
def backward(self, is_first=True):
if (is_first == True):
self.grad = 1.0
self._backward()
for c in self._prev:
c.backward(False)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.