[Platforms] Add device_type in Platform (#10508)
Signed-off-by: MengqingCao <cmq0113@163.com>
This commit is contained in:
@@ -56,6 +56,7 @@ class DeviceCapability(NamedTuple):
|
||||
|
||||
class Platform:
|
||||
_enum: PlatformEnum
|
||||
device_type: str
|
||||
|
||||
def is_cuda(self) -> bool:
|
||||
return self._enum == PlatformEnum.CUDA
|
||||
|
||||
Reference in New Issue
Block a user