don't exclude weakint in is_dtype_supported [pr] (#15378)

This commit is contained in:
chenyu
2026-03-20 02:08:29 -04:00
committed by GitHub
parent cf6a429aaa
commit 459ef41ea0

View File

@@ -331,7 +331,6 @@ class Compiled:
# TODO: move this to each Device
# this only tracks if the dtype is natively supported, it may be supported in the frontend using decomps
def is_dtype_supported(dtype:DType, device:str|None=None) -> bool:
if dtype == dtypes.weakint: return False
if device is None: device = Device.DEFAULT
if dtype == dtypes.bfloat16:
if device == "METAL": return not CI