setup the skeleton

Signed-off-by: Jinjie Liu <jjliu@baai.ac.cn>
This commit is contained in:
2026-01-28 00:54:18 +08:00
commit db4f3a0c68
11 changed files with 176 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from __future__ import annotations
from typing import Type
from triton.backends.nvidia.driver import CudaDriver
class TVMFFIUtils(object):
def __new__(cls: Type[TVMFFIUtils]) -> TVMFFIUtils:
if not hasattr(cls, "instance"):
cls.instance = super().__new__(cls)
return cls.instance
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
class TVMFFIDriver(CudaDriver): ...
del CudaDriver