Skip to content

Commit 83e4e45

Browse files
committed
Needed to make argument static
Signed-off-by: Dashiell Stander <dstander@protonmail.com>
1 parent 2dec7da commit 83e4e45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/algebraist/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
from copy import deepcopy
16-
from functools import lru_cache
16+
from functools import partial
1717
from itertools import pairwise, permutations
1818
import jax
1919
import jax.numpy as jnp
@@ -59,7 +59,7 @@ def cycle_to_one_line(cycle_rep: list[tuple[int, ...]]) -> tuple[int, ...]:
5959
return tuple(sigma)
6060

6161

62-
@jax.jit
62+
@partial(jax.jit, static_argnums=0)
6363
def generate_all_permutations(n: int) -> jax.Array:
6464
return jnp.array(list(permutations(range(n))))
6565

0 commit comments

Comments
 (0)