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 28f73c5 commit 5deb92dCopy full SHA for 5deb92d
python/triton/tools/compile.py
@@ -5,7 +5,7 @@
5
from argparse import ArgumentParser
6
from dataclasses import dataclass
7
from pathlib import Path
8
-from typing import List, Optional
+from typing import List
9
10
import triton
11
from triton._internal_testing import is_xpu
@@ -23,12 +23,12 @@ class CompileArgs:
23
grid: str = ''
24
grf_mode: str = ''
25
generate_native_code: bool = False
26
- target: Optional[str] = None
+ target: str | None = None
27
num_warps: int = 1
28
threads_per_warp: int = 32
29
num_stages: int = 3
30
- out_name: Optional[str] = None
31
- out_path: Optional[Path] = None
+ out_name: str | None = None
+ out_path: Path | None = None
32
33
34
desc = """
0 commit comments