Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' (#57)
* update PyTorch version to 2.1.0.dev20230523 (llvm#2148) - torch version: 2.1.0.dev20230523 - torch commit hash: 981d4c2578d10d8a96d173471802fc2812541fb1 - torchvision version: 0.16.0.dev20230523 Co-authored-by: Roll PyTorch Action <[email protected]> * [Torch Dialect] Add split.tensor support + recompose rules (llvm#2102) * add split.tensor support + recompose rules * add e2e test * address comments * address comments * erase op in recomposeOp --------- Co-authored-by: zhekun.zhang <[email protected]> * [Stablehlo] Add `AtenIndexTensor` StableHlo support (llvm#2107) * Add AtenIndexTensor StableHlo support * clean up * Empty commit, trigger test * try to debug hanging test * fix segfulat * fix bad include --------- Co-authored-by: zhekun.zhang <[email protected]> * [arm64] Fix release builds for ARM64 (llvm#2157) Tested on Ubuntu 23.04 on Ampere Altra instance. * [Stablehlo] Add aten.uniform lowering (llvm#2101) * add uniform stablehlo lowering * add unit test * new line * rm redundant file * Empty commit, trigger test * fix include * address comments --------- Co-authored-by: zhekun.zhang <[email protected]> * update PyTorch version to 2.1.0.dev20230525 (llvm#2167) - torch version: 2.1.0.dev20230525 - torch commit hash: eb2ef134b4e834a9b8a8b6de86ddd7d2780ce0ac - torchvision version: 0.16.0.dev20230525 Co-authored-by: Roll PyTorch Action <[email protected]> * CI: disable caching for release builds (llvm#2168) This patch adds a (default-true) input called `cache-enabled` to the setup-build action, so that when the input is false, ccache is not setup on the host machine. This patch also sets the input to be false for the release builds. * Add alias analysis for cast-like ops to maximize-value-semantics (llvm#2160) When `use_tracing=True` is used to import a model into Torch-MLIR, several casts get inserted in the IR to bridge the untyped inputs and outputs with the typed body of the computation. These casts create extra aliases of tensors that cause the current analysis in `maximize-value-semantics` to fail. In particular, the `maximize-value-semantics` analysis assumes that the only valid alias right after an overwrite is the overwritten alias. So, if there is a use of a casted version of the overwritten alias after the overwrite, the analysis fails. This commit improves the analysis by identifying all cast-like aliases of the overwritten alias and allowing such aliases to be used after an overwrite. Because this issue only arises when using tracing, it cannot be currently tested e2e, so only lit test is added. * only setup python for non-docker platforms (llvm#2171) Original PR was accidentally merged to a branch. Re-landing same PR to main now * Remove spurious pip in Release builds (llvm#2172) (left over from a previous commit that was approved and landed in a branch on accident) * [Torch Op] Add AtenChunkOp support (llvm#2152) * add chunkOp support * update LTC xfail list * address comments * address comments --------- Co-authored-by: zhekun.zhang <[email protected]> * Add ARM64 release builds (llvm#2159) Creates a build_linux_arm64 job that builds the release on an arm64 self-hosted runner. Drop Python 3.10 support Pass TM_TORCH_VERSION to choose the Stable PyTorch version (since arm64 doesn't have nightly builds) Borrows nightly / stable Pytorch switch from the WIP llvm#2038 * Delete another spurious pip (llvm#2173) * update PyTorch version to 2.1.0.dev20230526 (llvm#2175) - torch version: 2.1.0.dev20230526 - torch commit hash: 10b46f7c7f69f9bf705d2b6ea53efb9c59145685 - torchvision version: 0.16.0.dev20230526 Co-authored-by: Roll PyTorch Action <[email protected]> * [Stablehlo] Enable Stablehlo backend with arith dialect (llvm#2139) * Add correct type checking for tm_tensor.attention * [TM_TENSOR] Add `aten.scatter.[src|value]` op This commit adds support of `aten.scatter.src` and `aten.scatter.value` ops. Signed-Off-by: Gaurav Shukla <[email protected]> * [MLIR][TORCH] Add support for the total_weight for aten.nll_loss_forward op Signed-Off By: Vivek Khandelwal <[email protected]> * Add Stable PyTorch CI Pipeline (llvm#2038) * feat: split pytorch requirements into stable and nightly * fix: add true to tests to see full output * refactor: add comments to explain true statement * feat: move some tests to experimental mode * refactor: refactor pipeline into more fine grained difference * feat: add version differentiation for some tests * feat: activate more configs * refactor: change implementation to use less requirement files * refactor: remove contraints used for testing * fix: revert some requirement file names * refactor: remove unnecessary ninja install * fix: fix version parsing * refactor: remove dependency on torchvision in main requirements file * refactor: remove index url * style: remove unnecesary line switch * fix: readd index url * Add `ReadOnly` trait to `copy.to_vtensor` (llvm#2179) Before inlining a global slot, the users of the global slot are checked to see if they are `ReadOnly` or `MemoryEffectFree` to make sure that the global slot is not being mutated. Because the op `copy.to_vtensor` currently does not have the `ReadOnly` trait, if a global slot is passed to `copy.to_vtensor`, the pass `InlineGlobalSlots` will fail. The op `copy.to_vtensor` is `ReadOnly`, since it does not modify the contents of the input tensor; it simply makes a new copy. This commit adds the trait as well as an e2e test that generates the case of a global slot being passed to a `copy.to_vtensor`. * [Importer] import constant tuple (llvm#2132) * [Importer] import constant tuple * update * update * update * update PyTorch version to 2.1.0.dev20230531 (llvm#2188) - torch version: 2.1.0.dev20230531 - torch commit hash: 48552338649ccc467060f5f93dbe19e2acbc4d1a - torchvision version: 0.16.0.dev20230531 Co-authored-by: Roll PyTorch Action <[email protected]> * [Torch Dialect] Add support for AtenScalarTensorOp (llvm#2085) * add scalar_tensor op * add dynamo pass test; needs PR2062 * try to fix * Empty commit, trigger test * Empty commit, trigger test * address comments * use dtype function * fix decompose rule * remove unused include * Empty commit, trigger test * fix test * disable ltc * fix dtype --------- Co-authored-by: zhekun.zhang <[email protected]> --------- Signed-off-by: Gaurav Shukla <[email protected]> Co-authored-by: Sean Silva <[email protected]> Co-authored-by: Roll PyTorch Action <[email protected]> Co-authored-by: Zhekun Zhang <[email protected]> Co-authored-by: zhekun.zhang <[email protected]> Co-authored-by: powderluv <[email protected]> Co-authored-by: Ashay Rane <[email protected]> Co-authored-by: Ramiro Leal-Cavazos <[email protected]> Co-authored-by: Yuanqiang Liu <[email protected]> Co-authored-by: George Petterson <[email protected]> Co-authored-by: Gaurav Shukla <[email protected]> Co-authored-by: Vivek Khandelwal <[email protected]> Co-authored-by: maxbartel <[email protected]>
- Loading branch information