-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only respect preferences across the same indexes
- Loading branch information
1 parent
c6482dd
commit a265770
Showing
10 changed files
with
561 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def main(): | ||
print("Hello from foo!") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[project] | ||
name = "project" | ||
version = "0.1.0" | ||
requires-python = ">=3.12.0" | ||
dependencies = [] | ||
|
||
[project.optional-dependencies] | ||
cpu = [ | ||
"torch>=2.5.1", | ||
"torchvision>=0.20.1", | ||
] | ||
cu124 = [ | ||
"torch>=2.5.1", | ||
"torchvision>=0.20.1", | ||
] | ||
|
||
[tool.uv] | ||
conflicts = [ | ||
[ | ||
{ extra = "cpu" }, | ||
{ extra = "cu124" }, | ||
], | ||
] | ||
|
||
[tool.uv.sources] | ||
torch = [ | ||
{ index = "pytorch-cpu", extra = "cpu", marker = "platform_system != 'Darwin'" }, | ||
] | ||
torchvision = [ | ||
{ index = "pytorch-cpu", extra = "cpu", marker = "platform_system != 'Darwin'" }, | ||
] | ||
|
||
[[tool.uv.index]] | ||
name = "pytorch-cpu" | ||
url = "https://download.pytorch.org/whl/cpu" | ||
explicit = true |
Oops, something went wrong.