Skip to content

Commit

Permalink
fix wrong type set
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud committed Jan 8, 2025
1 parent 0627602 commit a505143
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion device_smi/amd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AMDGPUMetrics(BaseMetrics):

class AMDDevice(GPUDevice):
def __init__(self, cls, index):
super().__init__(cls, index, "xpu")
super().__init__(cls, index)
self.gpu_id = self._get_gpu_id()

try:
Expand Down
2 changes: 1 addition & 1 deletion device_smi/intel.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class IntelGPUMetrics(BaseMetrics):

class IntelDevice(GPUDevice):
def __init__(self, cls, index: int = 0):
super().__init__(cls, index)
super().__init__(cls, index, "xpu")
self.gpu_id = index

try:
Expand Down

0 comments on commit a505143

Please sign in to comment.