[Torch 2.11] Guard torch._C._cpu attribute checks for forward compatibility (#35673)

Signed-off-by: atalman <atalman@fb.com>
This commit is contained in:
Andrey Talman
2026-03-17 18:47:59 +00:00
committed by GitHub
parent c5030c439d
commit 68f783a727
9 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ direct_register_custom_op(
def check_cpu_sgl_kernel(n: int, k: int, dtype: torch.dtype) -> bool:
return (
torch._C._cpu._is_amx_tile_supported()
torch.cpu._is_amx_tile_supported()
and (dtype in (torch.bfloat16, torch.int8))
and k % 32 == 0
and n % 16 == 0