Skip to content

Commit a7e8e60

Browse files
committed
wip
Signed-off-by: Yaoyao Ding <dingyaoyao.cs@gmail.com>
1 parent 7856629 commit a7e8e60

File tree

1 file changed

+2
-2
lines changed
  • python/tilus/backends/emitters

1 file changed

+2
-2
lines changed

python/tilus/backends/emitters/cast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from hidet.ir.expr import Expr, Var, cast, tensor_pointer_var, tensor_var
2020
from hidet.ir.primitives.cuda.half import fma_f16x2, sub_f16x2
2121
from hidet.ir.primitives.cuda.prmt import prmt
22-
from hidet.ir.type import Callable, DataType, PointerType, TensorPointerType, TensorType
22+
from hidet.ir.type import BaseType, Callable, DataType, PointerType, TensorPointerType, TensorType
2323

2424
from tilus.backends.emitter import BaseInstEmitter, register_emitter
2525
from tilus.extensions.hidet.ir.dtypes import (
@@ -54,7 +54,7 @@ def get_base_type(tp):
5454
raise ValueError()
5555

5656

57-
def get_data_type(tp: TensorPointerType | TensorType | PointerType) -> DataType:
57+
def get_data_type(tp: BaseType) -> DataType:
5858
base_type = get_base_type(tp)
5959
if isinstance(base_type, DataType):
6060
return base_type

0 commit comments

Comments
 (0)