Skip to content

Commit ab49d1a

Browse files
committed
Fix the bug that __deepcopy__ does not register new node.
1 parent 85a4528 commit ab49d1a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

opto/trace/nodes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ def __deepcopy__(self, memo):
466466
setattr(result, k, defaultdict(list))
467467
else:
468468
setattr(result, k, copy.deepcopy(v, memo))
469+
GRAPH.register(result)
469470
return result
470471

471472
def lt(self, other):

0 commit comments

Comments
 (0)