Skip to content

Commit

Permalink
Fix bug when creating several programs in one file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed Sep 18, 2024
1 parent ba7718f commit d00a16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def __init__(self, *args, **kwargs):
super(FunctionTape, self).__init__(*args, **kwargs)
self.instances = {}
def __call__(self, *args, **kwargs):
key = ()
key = (get_program(),)
def process_for_key(arg):
nonlocal key
if isinstance(arg, types._vectorizable):
Expand Down

0 comments on commit d00a16d

Please sign in to comment.