Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
constantinpape committed Sep 5, 2023
1 parent 81958a1 commit 41951f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micro_sam/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _get_device(device):
device = "cuda"
# As second priority use mps.
# See https://pytorch.org/docs/stable/notes/mps.html for details
elif torch.backends.mps.is_avalable() and torch.backends.mps.is_built():
elif torch.backends.mps.is_available() and torch.backends.mps.is_built():
print("Using apple MPS device.")
device = "mps"
# Use the CPU as fallback.
Expand Down

0 comments on commit 41951f0

Please sign in to comment.