Commit Graph

290 Commits (67732883fa0d5e50cd449a3c5a6e80d60337d099)

Author SHA1 Message Date
Roll PyTorch Action 6b19c5e582 update PyTorch version to 2.1.0.dev20230425 2023-04-25 13:20:34 +00:00
Ramiro Leal-Cavazos 0831424f52
Revert PyTorch rolls to green version (#2053)
This reverts commit 0bf31ae614.
This reverts commit f7a1a076fa.

The last two PyTorch rolls have PyTorch versions that don't currently work on MacOS. This commit reverts to a PyTorch version that does work.
2023-04-24 14:17:34 -07:00
Roll PyTorch Action 0bf31ae614 update PyTorch version to 2.1.0.dev20230424 2023-04-24 13:20:17 +00:00
Roll PyTorch Action f7a1a076fa update PyTorch version to 2.1.0.dev20230423 2023-04-23 13:18:31 +00:00
Roll PyTorch Action 9c6e706f8d update PyTorch version to 2.1.0.dev20230422 2023-04-22 13:20:47 +00:00
Roll PyTorch Action 56182e434a update PyTorch version to 2.1.0.dev20230421 2023-04-21 13:22:53 +00:00
Roll PyTorch Action 97fbb6334b update PyTorch version to 2.1.0.dev20230420 2023-04-20 13:23:29 +00:00
Roll PyTorch Action dbbcc4aaff update PyTorch version to 2.1.0.dev20230419 2023-04-19 13:21:44 +00:00
Roll PyTorch Action c27182ef9c update PyTorch version to 2.1.0.dev20230418 2023-04-18 13:56:01 +00:00
Roll PyTorch Action 6973abbfaa update PyTorch version to 2.1.0.dev20230417 2023-04-17 13:21:13 +00:00
Roll PyTorch Action 7e4d2bc51d update PyTorch version to 2.1.0.dev20230416 2023-04-16 13:19:23 +00:00
Roll PyTorch Action 273e75bb8a update PyTorch version to 2.1.0.dev20230415 2023-04-15 13:19:13 +00:00
Roll PyTorch Action 811f330283 update PyTorch version to 2.1.0.dev20230414 2023-04-14 17:10:36 +00:00
Vivek Khandelwal 7ae354340d build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-04-09.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-04-10 17:13:53 +05:30
Vivek Khandelwal e7d4771403
build: manually update PyTorch version (#1998)
Set PyTorch and TorchVision version to nightly release 2023-04-03.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-04-04 06:51:26 -07:00
Vivek Khandelwal 0426942fa2
build: manually update PyTorch version (#1994)
Set PyTorch and TorchVision version to nightly release 2023-04-02.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-04-02 10:30:35 -07:00
Vivek Khandelwal 3451dd32a7 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-04-01.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-04-01 21:45:58 +05:30
Vivek Khandelwal b2af43b17c
build: manually update PyTorch version (#1988) 2023-03-31 02:09:53 -07:00
Roll PyTorch Action 158be370d1 update PyTorch version to 2.1.0.dev20230324 2023-03-24 13:23:10 +00:00
Roll PyTorch Action f2a05f2dc0 update PyTorch version to 2.1.0.dev20230323 2023-03-23 13:34:51 +00:00
Roll PyTorch Action 544b5f232b update PyTorch version to 2.1.0.dev20230322 2023-03-22 13:23:58 +00:00
Roll PyTorch Action c1b7de109e update PyTorch version to 2.1.0.dev20230321 2023-03-21 13:21:07 +00:00
Roll PyTorch Action 6eeed46060 update PyTorch version to 2.1.0.dev20230320 2023-03-20 13:24:16 +00:00
Roll PyTorch Action be9c0de957 update PyTorch version to 2.1.0.dev20230319 2023-03-19 13:22:18 +00:00
Roll PyTorch Action 679fa96bb3 update PyTorch version to 2.1.0.dev20230318 2023-03-18 13:21:57 +00:00
Roll PyTorch Action 3f3833d770 update PyTorch version to 2.1.0.dev20230317 2023-03-17 13:23:44 +00:00
Roll PyTorch Action 91cd37256c update PyTorch version to 2.1.0.dev20230316 2023-03-16 13:36:59 +00:00
Roll PyTorch Action 2468347376 update PyTorch version to 2.1.0.dev20230315 2023-03-15 13:24:04 +00:00
Roll PyTorch Action 327deb90cd update PyTorch version to 2.1.0.dev20230310 2023-03-10 13:23:52 +00:00
Roll PyTorch Action 1e6608f90c update PyTorch version to 2.1.0.dev20230309 2023-03-09 13:27:36 +00:00
Roll PyTorch Action 40c25cecc4 update PyTorch version to 2.1.0.dev20230308 2023-03-08 15:25:16 +00:00
Roll PyTorch Action 6c06b9560d update PyTorch version to 2.1.0.dev20230307 2023-03-07 13:37:23 +00:00
Roll PyTorch Action 62250dabbb update PyTorch version to 2.1.0.dev20230306 2023-03-06 13:23:41 +00:00
Roll PyTorch Action 5ad2d8e435 update PyTorch version to 2.1.0.dev20230305 2023-03-05 13:21:31 +00:00
Roll PyTorch Action 3297f8cb6f update PyTorch version to 2.1.0.dev20230304 2023-03-04 13:23:32 +00:00
Roll PyTorch Action a4602c674c update PyTorch version to 2.1.0.dev20230303 2023-03-03 13:23:46 +00:00
Roll PyTorch Action 50ad5eab9a update PyTorch version to 2.1.0.dev20230302 2023-03-02 13:23:42 +00:00
Roll PyTorch Action 690b07f6e5 update PyTorch version to 2.0.0.dev20230301 2023-03-01 13:35:55 +00:00
Vivek Khandelwal a32840ffd7 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-02-27.
This commit also adds the lowering for aten.add and aten.Float.Scalar op.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-02-28 22:43:39 +05:30
Vivek Khandelwal 6a3438f672 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-02-20.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-02-23 11:33:41 +05:30
Ashay Rane 67ab708b63
python: separate build- and test-related pip dependencies (#1874)
We want to ensure that pip packages required for building torch-mlir
should be included in the dependencies of torch-mlir, but we don't want
the pip packages required for _testing_ of torch-mlir to be included
among the dependencies.  To be able to specify and install one set of
dependencies and not the other, this patch separates the pip packages
into two files: build-requirements.txt and test-requirements.txt.

This patch also updates references to the requirements.txt file so that
CI builds that run end-to-end tests install test-related pip
dependencies while everything else (including WHL builds) sticks to just
the build-related pip dependencies.

Despite this change, this patch should not affect a torch-mlir
developer's workflow.  More precisely, since this patch makes the
top-level requirements.txt file refer to both build-requirements.txt and
test-requirements.txt files, a torch-mlir developer should be able to
continue referring to the requirements.txt file without any impact.
2023-02-13 21:22:09 -06:00
powderluv 57b252107e
test torch / torchvision compat (#1877) 2023-02-13 15:26:44 -08:00
Roll PyTorch Action 3cf5f4fcb7 update PyTorch version to 2.0.0.dev20230213 2023-02-13 15:23:12 +00:00
Roll PyTorch Action be4d220e81 update PyTorch version to 2.0.0.dev20230212 2023-02-12 14:45:19 +00:00
Roll PyTorch Action bb8fbc41e7 update PyTorch version to 2.0.0.dev20230211 2023-02-11 14:40:15 +00:00
Roll PyTorch Action a7294432bb update PyTorch version to 2.0.0.dev20230210 2023-02-10 14:34:25 +00:00
Roll PyTorch Action 83534370c3 update PyTorch version to 2.0.0.dev20230209 2023-02-09 15:23:33 +00:00
Roll PyTorch Action eb7bac7ca4 update PyTorch version to 2.0.0.dev20230208 2023-02-08 16:14:29 +00:00
Vivek Khandelwal 282c4e027b build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-02-07.
Fixes https://github.com/llvm/torch-mlir/issues/1792.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-02-08 11:41:58 +05:30
Vivek Khandelwal 3e60e6021f build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-02-06.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-02-07 12:02:18 +05:30
Vivek Khandelwal c957cebd03 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-02-05.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-02-06 13:23:28 +05:30
Roll PyTorch Action 5d55390111 update PyTorch version to 2.0.0.dev20230202 2023-02-02 15:06:52 +00:00
Ashay Rane 95361747c2
Revert "update PyTorch version to 2.0.0.dev20230201" (#1842)
This reverts commit ca400e02ce, since the
(upstream) Windows build of torchvision has an incorrect dependency.
2023-02-01 13:43:53 -06:00
Roll PyTorch Action ca400e02ce update PyTorch version to 2.0.0.dev20230201 2023-02-01 16:27:37 +00:00
Roll PyTorch Action 5057e88715 update PyTorch version to 2.0.0.dev20230131 2023-01-31 14:40:23 +00:00
Roll PyTorch Action c622f59300 update PyTorch version to 2.0.0.dev20230130 2023-01-30 14:33:24 +00:00
Roll PyTorch Action 6040d7ce00 update PyTorch version to 2.0.0.dev20230129 2023-01-29 14:32:31 +00:00
Roll PyTorch Action ef4316e046 update PyTorch version to 2.0.0.dev20230128 2023-01-28 14:34:24 +00:00
Roll PyTorch Action 31ffb815e4 update PyTorch version to 2.0.0.dev20230127 2023-01-27 14:25:52 +00:00
Roll PyTorch Action 37a625e737 update PyTorch version to 2.0.0.dev20230126 2023-01-26 14:56:31 +00:00
Roll PyTorch Action 506aceae7f update PyTorch version to 2.0.0.dev20230125 2023-01-25 17:08:43 +00:00
Roll PyTorch Action 8ce2fffca5 update PyTorch version to 2.0.0.dev20230124 2023-01-24 16:24:40 +00:00
Roll PyTorch Action c29c07b29b update PyTorch version to 2.0.0.dev20230123 2023-01-23 18:10:24 +00:00
Vivek Khandelwal bf4c77cbc5 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-01-22.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-01-23 13:33:50 +05:30
Roll PyTorch Action 68ac2ce655 update PyTorch version to 2.0.0.dev20230121 2023-01-21 14:27:15 +00:00
Roll PyTorch Action d3c6183294 update PyTorch version to 2.0.0.dev20230120 2023-01-20 14:55:41 +00:00
Roll PyTorch Action c4c9d66f71 update PyTorch version to 2.0.0.dev20230119 2023-01-19 14:42:35 +00:00
Roll PyTorch Action 158c9b5408 update PyTorch version to 2.0.0.dev20230118 2023-01-18 14:50:48 +00:00
Roll PyTorch Action 19bb8aebdf update PyTorch version to 2.0.0.dev20230117 2023-01-17 16:30:58 +00:00
Roll PyTorch Action 2fe697c0be update PyTorch version to 2.0.0.dev20230116 2023-01-16 14:45:56 +00:00
Vivek Khandelwal 924503c436 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-01-15.

Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-01-16 13:07:57 +05:30
Roll PyTorch Action 3f49ba9fe2 update PyTorch version to 2.0.0.dev20230114 2023-01-14 14:35:15 +00:00
Roll PyTorch Action 7f95f44297 update PyTorch version to 2.0.0.dev20230113 2023-01-13 14:33:07 +00:00
Roll PyTorch Action f74164161a update PyTorch version to 2.0.0.dev20230112 2023-01-12 15:12:52 +00:00
Roll PyTorch Action cffee681bd update PyTorch version to 2.0.0.dev20230111 2023-01-11 16:20:26 +00:00
Vivek Khandelwal b966733e04 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2023-01-08.

Signed-Off By: Vivek Khandelwal<vivek@nod-labs.com>
2023-01-11 17:39:10 +05:30
Roll PyTorch Action 1f2946a5a7 update PyTorch version to 2.0.0.dev20230106 2023-01-06 14:41:18 +00:00
Roll PyTorch Action 98cb12e3e5 update PyTorch version to 2.0.0.dev20230105 2023-01-05 14:28:36 +00:00
Roll PyTorch Action 5351db0e99 update PyTorch version to 2.0.0.dev20230104 2023-01-04 16:38:47 +00:00
Roll PyTorch Action 324ccccc2d update PyTorch version to 2.0.0.dev20230103 2023-01-03 14:27:40 +00:00
Roll PyTorch Action 818f5dc3ad update PyTorch version to 2.0.0.dev20230102 2023-01-02 14:26:23 +00:00
Roll PyTorch Action cfad718a86 update PyTorch version to 2.0.0.dev20230101 2023-01-01 14:27:33 +00:00
Roll PyTorch Action 9e71d271f6 update PyTorch version to 2.0.0.dev20221231 2023-01-01 09:33:45 +00:00
Roll PyTorch Action 867fade9c5 update PyTorch version to 2.0.0.dev20221230 2022-12-30 14:36:33 +00:00
Roll PyTorch Action f0998f92df update PyTorch version to 2.0.0.dev20221229 2022-12-29 14:39:28 +00:00
Roll PyTorch Action 49274dc3db update PyTorch version to 2.0.0.dev20221228 2022-12-28 15:03:28 +00:00
Roll PyTorch Action ff9523d2b6 update PyTorch version to 2.0.0.dev20221227 2022-12-27 14:29:41 +00:00
Roll PyTorch Action 6bd6a79e23 update PyTorch version to 2.0.0.dev20221226 2022-12-26 14:34:40 +00:00
Roll PyTorch Action 86d25e310b update PyTorch version to 2.0.0.dev20221225 2022-12-25 14:19:22 +00:00
Roll PyTorch Action 7362f80558 update PyTorch version to 2.0.0.dev20221224 2022-12-24 14:54:07 +00:00
Roll PyTorch Action bcfb1d10b1 update PyTorch version to 2.0.0.dev20221223 2022-12-23 14:35:08 +00:00
Roll PyTorch Action 52669cbbd5 update PyTorch version to 2.0.0.dev20221222 2022-12-22 14:36:49 +00:00
Roll PyTorch Action 810473cc03 update PyTorch version to 2.0.0.dev20221221 2022-12-21 16:24:41 +00:00
Jae Hoon (Antonio) Kim 1d695239ff
Unrevert #1724 (#1737)
* Unrevert #1724

* Update pytorch requirements.txt
2022-12-20 11:17:21 -05:00
Roll PyTorch Action 335cfe9134 update PyTorch version to 2.0.0.dev20221217 2022-12-17 14:40:50 +00:00
Ashay Rane dd1cf578a6
build: fix LTC code after upstream PyTorch change (#1727)
pytorch/pytorch@140a3139 reverted a change from yesterday, causing the
RollPyTorch action to break.  This patch reverts the corresponding
change in the torch-mlir LTC code.

This patch also re-enables tests that were previously marked as XFAIL.
2022-12-16 13:07:38 -06:00
Jae Hoon (Antonio) Kim a2a93891ea
Replace asIntArrayRefSlow with macro (#1724)
* Replace asIntArrayRefSlow with macro

* Update pytorch requirements.txt
2022-12-15 11:52:41 -05:00
Roll PyTorch Action a29f173a6b update PyTorch version to 2.0.0.dev20221214 2022-12-14 15:23:09 +00:00
Roll PyTorch Action 8d098dc8d5 update PyTorch version to 2.0.0.dev20221213 2022-12-13 14:52:27 +00:00
Vivek Khandelwal 143a8f378d build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2022-12-11.

Signed-Off By: Vivek Khandelwal<vivek@nod-labs.com>
2022-12-12 15:46:54 +05:30
Vivek Khandelwal ef39b9ebb4 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2022-12-05.

Signed-Off By: Vivek Khandelwal<vivek@nod-labs.com>
2022-12-05 22:44:32 +05:30
Roll PyTorch Action 6c5360e281 update PyTorch version to 1.14.0.dev20221204 2022-12-04 14:28:48 +00:00
Roll PyTorch Action 8baa9e42e7 update PyTorch version to 1.14.0.dev20221203 2022-12-03 14:37:17 +00:00
Roll PyTorch Action fcc670d785 update PyTorch version to 1.14.0.dev20221202 2022-12-02 14:50:28 +00:00
Roll PyTorch Action e66bf7b8cb update PyTorch version to 1.14.0.dev20221201 2022-12-01 15:01:09 +00:00
Roll PyTorch Action 44b185a46b update PyTorch version to 1.14.0.dev20221130 2022-11-30 15:31:17 +00:00
Vivek Khandelwal 4d49c44967 build: manually update PyTorch version
Set PyTorch and TorchVision version to nightly release 2022-11-22.
Add failing tests to the xfail set.

Signed-Off By: Vivek Khandelwal<vivek@nod-labs.com>
2022-11-29 20:33:27 +05:30
Ashay Rane e206db2761
build: manually update PyTorch version (#1631)
Sets PyTorch and TorchVision version to nightly release 2022-11-22.
2022-11-23 19:06:55 -06:00
Roll PyTorch Action f40cbd6a71 update PyTorch version to 1.14.0.dev20221114 2022-11-15 01:44:30 +00:00
Ashay Rane f1ef5681cc
build: pin torchvision to latest nightly (#1584)
We currently pin the `torch` package to the latest nightly version, but
since `torchvision` depends on the `torch` package, the pip resolver
then has to run through an extensive list of `torchvision` packages that
can be installed with the pinned `torch` package.  This search fails in
the RollPyTorch action, causing pip to settle on an old version of
`torchvision` that does not work with our tests.  In reality, we are
only interested in a specific version of the `torchvision` package.

To make the dependency explicit and to prevent test failures because of
incorrect package installations, this patch makes two key changes:

1. `torchvision` is now pinned to the latest nightly release in
   pytorch-requirements.txt along with the version of `torch` that is
   necessary to install the requested `torchvision` package

2. The RollPyTorch action now looks for the latest `torchvision` package
   instead of the latest `torch` package before writing the version
   numbers for pinning in pytorch-requirements.txt
2022-11-14 15:56:02 -06:00
Gleb Kazantaev 6909eaf7fc
Update TorchMlirBackendImpl Methods (#1580)
* Fix LTC build

* Remove passing test from xfail set
2022-11-14 00:37:49 -05:00
Ashay Rane 6c31b06922
build: revert PyTorch update (#1571)
The PyTorch update broke the build.  I'm about to add more tests so that
it doesn't happen in the future.
2022-11-10 12:37:25 -06:00
Roll PyTorch Action 9df748d7ef update PyTorch version to 1.14.0.dev20221110 2022-11-10 17:52:06 +00:00
Jae Hoon (Antonio) Kim 2ec4b06bbb
Remove MakeView from IR Builder (#1552)
* Remove MakeView from IR Builder

* Update PyTorch requirements
2022-11-09 13:46:34 -05:00
Roll PyTorch Action e78e9cd782 update PyTorch version to 1.14.0.dev20221105 2022-11-06 14:04:59 +00:00
Roll PyTorch Action 5ee20e70a1 update PyTorch version to 1.14.0.dev20221104 2022-11-04 22:01:57 +00:00
Jae Hoon (Antonio) Kim 0701464c47
Remove view ops from IR builder (#1534)
* Remove view ops from IR builder

* Update PyTorch requirements
2022-10-30 21:42:44 -04:00
Roll PyTorch Action 5d5aa47cdf update PyTorch version to 1.14.0.dev20221027 2022-10-27 16:35:00 +00:00
Roll PyTorch Action ce01c4f9a7 update PyTorch version to 1.14.0.dev20221026 2022-10-26 15:29:42 +00:00
Roll PyTorch Action 2f097d3976 update PyTorch version to 1.14.0.dev20221025 2022-10-25 13:36:46 +00:00
Jae Hoon (Antonio) Kim 2f300935bf
Reference lazy graph executor (#1507)
* Add LazyGraphExecutor registration

* Update PyTorch version to 1.14.0.dev20221024

Co-authored-by: Roll PyTorch Action <torch-mlir@users.noreply.github.com>
2022-10-24 17:15:11 -04:00
Roll PyTorch Action 470a2f62f3 update PyTorch version to 1.14.0.dev20221021 2022-10-21 15:25:28 +00:00
Roll PyTorch Action 724d8d183a update PyTorch version to 1.14.0.dev20221020 2022-10-20 13:38:23 +00:00
Roll PyTorch Action c97df38e3e update PyTorch version to 1.14.0.dev20221019 2022-10-19 15:27:42 +00:00
Ashay Rane 1d28098c3c
Revert "update PyTorch version to 1.14.0.dev20221018" (#1504)
Upstream PyTorch nightly page
[https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html]
somehow dropped the link for torch-1.14.0.dev20221018 for macOS but not
for Linux or Windows, whereas our RollPyTorch action assumes that if the
nightly version is available for Linux, it is also available for macOS.
This reverts the commit that changed the PyTorch version.
2022-10-18 13:51:26 -05:00
Roll PyTorch Action 943cc9e736 update PyTorch version to 1.14.0.dev20221018 2022-10-18 16:05:58 +00:00
Roll PyTorch Action 679170702c update PyTorch version to 1.14.0.dev20221017 2022-10-17 13:40:06 +00:00
Roll PyTorch Action 5f69d2c2ef update PyTorch version to 1.14.0.dev20221016 2022-10-16 14:03:14 +00:00
Roll PyTorch Action a9177102c6 update PyTorch version to 1.14.0.dev20221015 2022-10-15 16:47:22 +00:00
Roll PyTorch Action 7df9179f85 update PyTorch version to 1.14.0.dev20221014 2022-10-14 14:04:52 +00:00
Roll PyTorch Action a0dd0ddcbf update PyTorch version to 1.14.0.dev20221013 2022-10-13 14:13:56 +00:00
Roll PyTorch Action b487113ef1 update PyTorch version to 1.14.0.dev20221012 2022-10-12 14:37:13 +00:00
Jae Hoon (Antonio) Kim 3e08f5a779
Fix `fromIntArrayRef` call (#1479)
* Fix fromSymint call

* Update PyTorch requirement

* Re-enable LTC
2022-10-11 13:29:07 -04:00
Ashay Rane aefbf65e27
Disable LTC and update PyTorch (#1472)
* build: disable LTC again so that we can bump PyTorch version

When built using PyTorch's master branch, the LTC code has been failing
to build for a few days.  As a result, the PyTorch version referenced by
Torch-MLIR is stalled to the one from October 4th.

In an effort to advance to PyTorch version, this patch disables LTC, and
a subsequent patch will advance the PyTorch version.

* update PyTorch version to 1.14.0.dev20221010

Also disables the `UpSampleNearest2dDynamicFactor_basic` e2e test, since
the (PyTorch) oracle differs from the computed value for both the
refbackend and the eager_mode backends.
2022-10-10 23:05:40 -05:00
Jae Hoon (Antonio) Kim c57d801260
Fix functionalize_aten_op calls for symint ops (#1459)
* Fix functionalize_aten_op calls for symint ops

* Update PyTorch version
2022-10-05 10:23:48 -04:00
Roll PyTorch Action 7da1af85c2 update PyTorch version to 1.13.0.dev20221003 2022-10-03 16:35:07 +00:00
Roll PyTorch Action f32869b854 update PyTorch version to 1.13.0.dev20221002 2022-10-02 17:09:55 +00:00
Roll PyTorch Action aa31be720a update PyTorch version to 1.13.0.dev20220930 2022-09-30 13:27:54 +00:00
Roll PyTorch Action 15e1c45ed6 update PyTorch version to 1.13.0.dev20220929 2022-09-29 20:34:45 +00:00
Ashay Rane 53e76b8ab6
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-28 15:38:30 -05:00