Skip to content

Commit 0f864a3

Browse files
committed
Consider config.numba__fastmath in cache key
1 parent 8b4c31e commit 0f864a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/link/numba/dispatch/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def numba_funcify_ensure_cache(op, *args, **kwargs) -> tuple[Callable, str | Non
478478
src=f"def {op_name}(*args): return jitable_func(*args)",
479479
function_name=op_name,
480480
global_env=globals() | {"jitable_func": jitable_func},
481-
cache_key=cache_key,
481+
cache_key=f"{cache_key}_fastmath{int(config.numba__fastmath)}",
482482
)
483483
return numba_njit(cached_func, cache=True), cache_key
484484

0 commit comments

Comments
 (0)