Skip to content

Commit

Permalink
Merge pull request #57 from Xiao-Chenguang/torch
Browse files Browse the repository at this point in the history
Config torch for all platform except macos
  • Loading branch information
Xiao-Chenguang authored Nov 21, 2024
2 parents 22da169 + 1013d4c commit 962d7d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ dev-dependencies = [
"torchvision>=0.19.1",
]

[tool.ruff.lint.isort]
known-third-party = ["wandb"]
[tool.uv.sources]
torch = [{ index = "pytorch-cu121", marker = "platform_system != 'Darwin'" }]

[[tool.uv.index]]
name = "pytorch-cu121"
url = "https://download.pytorch.org/whl/cu121"
explicit = true

0 comments on commit 962d7d9

Please sign in to comment.