[Platform] Add supports_torch_inductor interface (#1108)

Signed-off-by: gcanlin <canlinguosdu@gmail.com>
This commit is contained in:
Canlin Guo authored and GitHub committed 2026-01-30 15:21:43 +00:00
1 parent be835c4483
commit 4eeea68cff
6 files changed
+35 -7

No files matched your search

+5
View File
@@ -73,6 +73,11 @@ class OmniPlatform(Platform):
"""
raise NotImplementedError
@classmethod
def supports_torch_inductor(cls) -> bool:
"""Check if the platform supports torch.compile with inductor backend."""
raise NotImplementedError
@classmethod
def get_torch_device(cls, local_rank: int | None = None) -> torch.device:
raise NotImplementedError