mirror of
https://github.com/sgjzfzzf/triton-tvm-ffi.git
synced 2026-05-02 03:52:11 +08:00
11 lines
217 B
Python
11 lines
217 B
Python
from typing import Optional
|
|
|
|
from triton.backends.nvidia.driver import ty_to_cpp
|
|
|
|
|
|
def type_canonicalize(ty: str) -> Optional[str]:
|
|
if ty == "constexpr":
|
|
return None
|
|
else:
|
|
return ty_to_cpp(ty)
|