Skip to content

Commit

Permalink
Change child set to tuple to simplify debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
parsiad committed Jan 30, 2024
1 parent a20968e commit b6ada09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/micrograd_pp/_expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(
requires_grad: bool | None = None,
) -> None:
self._value = value
self._children = set(children)
self._children = tuple(children)
self._label = label
if requires_grad is None:
requires_grad = any(child._requires_grad for child in children)
Expand Down

0 comments on commit b6ada09

Please sign in to comment.