Skip to content

Commit b3fb633

Browse files
committed
remove the None branch for get_current_accelerator_device
1 parent 6504812 commit b3fb633

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

torchao/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ def get_available_devices():
155155
def get_current_accelerator_device():
156156
if torch.accelerator.is_available():
157157
return torch.accelerator.current_accelerator()
158-
else:
159-
return None
160158

161159

162160
def get_compute_capability():

0 commit comments

Comments
 (0)