File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -188,14 +188,13 @@ def memory_order_has_release(memory_order: MemoryOrder):
188188def get_dtype (ty : TileTy | datatype .DType | LooselyTypedScalar ) -> datatype .DType | PointerTy :
189189 if isinstance (ty , TileTy ):
190190 return ty .dtype
191- elif isinstance (ty , datatype .DType ):
191+ if isinstance (ty , datatype .DType ):
192192 return ty
193- elif isinstance (ty , PointerTy ):
193+ if isinstance (ty , PointerTy ):
194194 return ty
195- elif isinstance (ty , LooselyTypedScalar ):
195+ if isinstance (ty , LooselyTypedScalar ):
196196 return typeof_pyval (ty .value )
197- else :
198- raise TypeError (f"Cannot get dtype from { ty } " )
197+ raise TypeError (f"Cannot get dtype from { ty } " )
199198
200199
201200def change_dtype (ty : TileTy | datatype .DType | PointerTy ,
You can’t perform that action at this time.
0 commit comments