This website requires JavaScript.
Explore
Help
Register
Sign In
llvm
/
torch-mlir
mirror of
https://github.com/llvm/torch-mlir
Watch
1
Star
0
Fork
You've already forked torch-mlir
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
f83ee83604
torch-mlir
/
pytorch-requirements.txt
4 lines
98 B
Plaintext
Raw
Normal View
History
Unescape
Escape
build: create RollPyTorch to update PyTorch version in Torch-MLIR (#1419) This patch fetches the most recent nightly (binary) build of PyTorch, before pinning it in pytorch-requirements.txt, which is referenced in the top-level requirements.txt file. This way, end users will continue to be able to run `pip -r requirements.txt` without worrying whether doing so will break their Torch-MLIR build. This patch also fetches the git commit hash that corresponds to the nightly release, and this hash is passed to the out-of-tree build so that it can build PyTorch from source. If we were to sort the torch versions as numbers (in the usual descending order), then 1.9 appears before 1.13. To fix this problem, we use the `--version-sort` flag (along with `--reverse` for specifying a descending order). We also filter out lines that don't contain version numbers by only considering lines that start with a digit. As a matter of slight clarity, this patch renames the variable `torch_from_src` to `torch_from_bin`, since that variable is initialized to `TM_USE_PYTORCH_BINARY`. Co-authored-by: powderluv <powderluv@users.noreply.github.com>
2022-09-29 04:38:30 +08:00
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
--pre
update PyTorch version to 2.1.0.dev20230831 - torch version: 2.1.0.dev20230831 - torch commit hash: b5b99fe13b890232bb61155a46239922661f4695 - torchvision version: 0.16.0.dev20230831
2023-08-31 21:21:57 +08:00
torch==2.1.0.dev20230831