[misc]refactor Platform.set_device method (#20262)

Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Kunshang Ji
2025-07-09 01:39:47 +00:00
committed by GitHub
parent 5eaf570050
commit 0b407479ef
9 changed files with 43 additions and 4 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ class Platform:
"""
Set the device for the current platform.
"""
torch.cuda.set_device(device)
raise NotImplementedError
@classmethod
def pre_register_and_update(cls,