From d00a16dbf09289bb9db9f632b4a7b29bbd038920 Mon Sep 17 00:00:00 2001 From: Marcel Keller Date: Wed, 18 Sep 2024 19:57:29 +1000 Subject: [PATCH] Fix bug when creating several programs in one file. --- Compiler/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/library.py b/Compiler/library.py index 2259d0c09..57a107cd7 100644 --- a/Compiler/library.py +++ b/Compiler/library.py @@ -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):