diff --git a/src/micrograd_pp/_expr.py b/src/micrograd_pp/_expr.py index 3d0f7b2..984b229 100644 --- a/src/micrograd_pp/_expr.py +++ b/src/micrograd_pp/_expr.py @@ -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)