Skip to content

Commit

Permalink
fix: fix torch dependency for Intel Macs
Browse files Browse the repository at this point in the history
Signed-off-by: Panos Vagenas <[email protected]>
  • Loading branch information
vagenas committed Aug 28, 2024
1 parent 7a83e03 commit 8c83408
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 10 deletions.
157 changes: 149 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ packages = [

[tool.poetry.dependencies]
python = "^3.10"
torch = "^2.2.2"
torchvision = ">=0.17.2"
torch = [
{markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'", version = "^2.2.2"},
{markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", version = "~2.2.2"}
]
torchvision = [
{markers = "sys_platform != 'darwin' or platform_machine != 'x86_64'", version = "^0"},
{markers = "sys_platform == 'darwin' and platform_machine == 'x86_64'", version = "~0.17.2"}
]
onnxruntime = "^1.16.2"
numpy = "^1.24.4"
lxml = "^4.9.1"
Expand Down

0 comments on commit 8c83408

Please sign in to comment.