[platform] fix: set UnspecifiedOmniPlatform device_type to cpu (#4357)
Signed-off-by: samithuang <285365963@qq.com>
This commit is contained in:
1 parent
8f869c8ea5
commit
f44f3ef9f7
1 file changed
+1
-1
@@ -241,7 +241,7 @@ class OmniPlatform(Platform):
|
||||
class UnspecifiedOmniPlatform(OmniPlatform):
|
||||
_omni_enum = OmniPlatformEnum.UNSPECIFIED
|
||||
_enum = PlatformEnum.UNSPECIFIED
|
||||
device_type = ""
|
||||
device_type = "cpu"
|
||||
|
||||
@classmethod
|
||||
def get_device_count(cls) -> int:
|
||||
|
||||
Reference in new issue
Block a user