Skip to content

Commit

Permalink
Prevent torch 2.3.0 on macOS intel
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeschamps committed Apr 30, 2024
1 parent dc6c5a6 commit ffb91dd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ classifiers = [
"Typing :: Typed",
]
dependencies = [
'torch>=2.0.0',
'torchvision',
# windows and linux, macOS silicon
'torch>=2.0.0; platform_system!="Darwin"',
'torch>=2.0.0; platform_system=="Darwin" and platform_machine!="arm64"',

# potential issue with torch 2.3.0 using MPS on arm64 macOS
'torch>=2.0.0, <2.3.0; platform_system=="Darwin" and platform_machine=="arm64"',

# other dependencies
'albumentations',
'bioimageio.core>=0.6.0',
'tifffile',
Expand Down

0 comments on commit ffb91dd

Please sign in to comment.