diff --git a/python/triton/runtime/autotuner.py b/python/triton/runtime/autotuner.py index e12509f4f263..0c4d710496fa 100644 --- a/python/triton/runtime/autotuner.py +++ b/python/triton/runtime/autotuner.py @@ -36,7 +36,7 @@ def __init__(self, fn, arg_names, configs, key, reset_to_zero, restore_value, pr self.keys = key self.cache: Dict[Tuple, Config] = {} self.arg_names = arg_names - self.cache_results = cache_results or (knobs.autotuning.cache and not knobs.runtime.interpret) + self.cache_results = (cache_results or knobs.autotuning.cache) and not knobs.runtime.interpret # Reset to zero or restore values self.reset_to_zero = []