Skip to content

Commit

Permalink
🐛 fix mps error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Aug 1, 2024
1 parent 318d33f commit 928a9b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/devices/mac_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def check_for_mps() -> bool:
else:
try:
return torch.backends.mps.is_available() and torch.backends.mps.is_built()
except:
logger.warning("MPS garbage collection failed", exc_info=True)
except Exception as e:
logger.warning("MPS check failed: %s", exc_info=True)
return False


Expand Down

0 comments on commit 928a9b4

Please sign in to comment.