Files
2026-02-04 17:22:39 +08:00

12 lines
196 B
Python

import torch
from .interface import Platform, PlatformEnum
class HpuPlatform(Platform):
_enum = PlatformEnum.HPU
@staticmethod
def inference_mode():
return torch.no_grad()