Fixed a bug related to split_k and prune unnecessary tuning space (#332)

* refine tuning scrit by adding prune_configs, also fixed a bug in generating tuning configs

* fixed a bug in returning the empty config
This commit is contained in:
Shucai Xiao
2023-09-21 23:47:14 -05:00
committed by GitHub
parent a8574be74d
commit 10795d8fd3
2 changed files with 41 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ class Autotuner(KernelInterface):
key_values.append(kwargs[name])
key = tuple(key_values)
return self.cache[key] if key in self.cache else Config()
return self.cache[key] if key in self.cache else Config({})
def run(self, *args, **kwargs):