We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55ef828 commit c4f0fbbCopy full SHA for c4f0fbb
tools/tpp-tune/tpp-tune.py
@@ -3,7 +3,7 @@
3
import sys
4
from pathlib import Path
5
from typing import Union, Sequence, Dict
6
-
+import random
7
8
# Enable automagically finding TPP-MLIR's python modules (which include
9
# and extend MLIR's Python bindings).
@@ -30,7 +30,7 @@ def wrapper(op: Union[ir.OpView, ir.Operation]):
30
31
def autotune(choices: Dict[str, Sequence[ir.Attribute]]) -> Dict[str, ir.Attribute]:
32
# Aint tuning easy!!
33
- return {key: values[0] for key, values in choices.items()}
+ return {key: random.choice(values) for key, values in choices.items()}
34
35
36
file = sys.stdin
0 commit comments