[Platforms] Add device_type in Platform (#10508)

Signed-off-by: MengqingCao <cmq0113@163.com>
This commit is contained in:
Mengqing Cao
2024-11-21 04:44:20 +00:00
committed by GitHub
parent 6c1208d083
commit 9d827170a3
10 changed files with 11 additions and 15 deletions
+1
View File
@@ -16,6 +16,7 @@ logger = init_logger(__name__)
class TpuPlatform(Platform):
_enum = PlatformEnum.TPU
device_type: str = "tpu"
@classmethod
def get_default_attn_backend(cls, selected_backend: _Backend) -> _Backend: