diff --git a/neuroscope/tracers/pytorch.py b/neuroscope/tracers/pytorch.py index e533c5c..6f235dc 100644 --- a/neuroscope/tracers/pytorch.py +++ b/neuroscope/tracers/pytorch.py @@ -379,7 +379,7 @@ def _get_parent_node_id(self, name: str) -> str | None: return None # Find the most recent node with that parent name - for node_id, node in reversed(list(self._graph.nodes.items())): + for node_id, node in reversed(self._graph.nodes.items()): if node.label == parent_name: return node_id return None