Files

12 lines
196 B
Python
Raw Permalink Normal View History

2026-02-04 17:22:39 +08:00
import torch
from .interface import Platform, PlatformEnum
class HpuPlatform(Platform):
_enum = PlatformEnum.HPU
@staticmethod
def inference_mode():
return torch.no_grad()