Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/llvm/torch-mlir
The Torch-MLIR project aims to provide first class support from the PyTorch ecosystem to the MLIR ecosystem.
https://github.com/llvm/torch-mlir
5d7a6c2976278c9ec2fe3f2ddd3e02c5a65de897 authored almost 3 years ago
This is the first step to making the e2e framework convenient to use
by downstream backends.
This commit adds support for the cases of view op where the rank and
the shapes of the input and...
This commit adds decomposition of `aten.zero_` op.
Signed-Off-by: Gaurav Shukla <gaurav@nod-lab...
02b6d04eb402143ed53044610d829c1ae88d0fb2 authored almost 3 years ago94df096c11011667ddd0da1a5058f7918732b5dc authored almost 3 years ago
`albert-base-v2` for sequence classification is added in e2e_heavy_test.
730cdcd071811b47e171b5b639ea640fa4f5764d authored almost 3 years ago
In order to make sure that the TorchToLinalg conversions leave the
graph in a valid state, the ...
* fix type inference
* fix Torch2Linalg conversion
* add test cases
Effectively, this mode works by compiling op by op as the NN is eagerly executed by PyTorch. Ent...
fe8ac57e6d15b0cbfd3a4e3f675d4182c1e44b3c authored almost 3 years agof9d34596e83b5b3e1f804aa78f869a929d59bba9 authored almost 3 years ago
Torch FX was never really a different path, since all FX modules are
actually valid TorchScript ...
- This commit adds decomposition of `aten.dropout` op. It also covers the
training mode of the...
The `assemblyFormat` stuff (which generates unrolled, per-op C++ code)
was taking up a lot of co...
This commit adds the op `ValsemVariantAtenCopyOp` that represents
`AtenCopy_Op` without the unde...
This commit decomposes `aten._to_copy` op into
`valsem.aten.copy` op.
Signed-Off By: Vivek Khan...
5b9bdfaf3fb56c5aed12d689e21c9884b1c5a789 authored almost 3 years agoThis commit decomposes `aten.expand_as` op into `aten.broadcast_to` op.
Signed-Off By: Vivek Kh...
4c0cd5c23d7df32303416b7065015676fa82e206 authored almost 3 years ago63fb1e5aad7b0c346527d1814234ecf5d98a505e authored almost 3 years ago
This commit adds support for type refinement when
`torch.tensor_static_info_cast`s are involved...
This commit fixes the 2nd and 3rd return types of the `aten.native_layer_norm`.
Previously the m...
The ODS-generated code included via the `TorchOps.cpp.inc` file takes a
very long time to compil...
This commit decomposes `aten.index_put` op into
`valsem.aten.index_put_impl` op.
Signed-Off By:...
8da7d9061117a02804927a925b6038f6d3fbdcdb authored almost 3 years ago
This commit adds the op `ValsemVariantAtenIndexPutImplOp` that represents
`Aten_IndexPutImpl_Op`...
8a4388ea7bc88eb3591eec64499847012bfc16c0 authored almost 3 years ago
This commit adds value semantics support for ops such as
`aten.view_as` and `aten.expand_as` th...
The term "pseudo" is very vague and was getting confusing (I felt I had
to explain it in every c...
This is code that we always want to treat as "foreign" and not get too
comfortable using in many...
This leads to much more succinct types in many cases:
```
!torch.list<!torch.int>
!torch.list<i...
This was an aspirational goal at an earlier stage in the project where
the focus was heavily on ...
See the documentation in `docs/shape_lib.md` and
`docs/adding_a_shape_function.md` for an overvi...
This helps keep things organized and also exposes more parallelism to
the build system. It seems...
The location of packed_params.h is changed in aten src.
b6d13301fc4179a76f4e66b6d58d5d344bc663a7 authored almost 3 years ago
This commit replaces the two rewrite patterns of
maximize-value-semantics with a single pattern...
3510b2ba9d49c18d0c34a4587fc08e3996954fc2 authored almost 3 years ago
Signed-Off-By: Prateek Gupta <[email protected]>
3d9ba5e525a64b1de0081bd4349dac1266be9cb1 authored almost 3 years ago
This commit moves the helper function which are common across
different torch-mlir conversion pa...
This pass is added to lower ops, which can not be lowered
via the TorchToLinalg pass, such as `t...
This commit adds support for integer type inputs for
`AtenMaxOp`, `AtenSumOp`, `AtenSumDimIntLis...
af7f42fd93510d6d353e5013000b8a6ccfd90017 authored almost 3 years ago
- This commit adds E2E support for `aten.rand_like` and
`aten.bernoulli_.Tensor` ops.
- The `a...
This commit decomposes `aten.full_like` op into `aten.empty_like`
and `aten.fill` op.
Signed-Of...
af551bd9cdbbf3d82d2ae53344d67a7be146a7bf authored almost 3 years ago
This commit decomposes `aten.full` op into `aten.empty` and
`aten.fill` op.
Signed-Off By: Vive...
d61ae92eeefcf96cd5137e2464e934f0b0b5b20a authored almost 3 years ago
This commit adds static type information support to `aten.bmm`. This
is needed for the forward ...
The pass is mostly borrowed from the BufferizeAnyLinalgOp pass in mlir
upstream with some minor ...
This commit adds a lowering for `TensorStaicInfoCastOp` that simply
replaces the op with the `t...
The view op allows for the new shape argument to have a -1 value for
one of the dimensions, and...
1d285f01535b21e01121ee57f891fda576f22e7d authored almost 3 years ago
Decomposition of aten.silu.op is added as silu(x) = x * sigmoid(x).
819f29316f961cf77a754ea2567f66a8a35cc493 authored almost 3 years agoThis commit adds lowering of `aten.new_zeros` and `aten.new_ones` op
Signed-Off By: Vivek Khande...
ddd45d60687dfc0bbe66d2b37f3e5b839ae969d5 authored almost 3 years ago
This commit adds support for the contiguous memory format for the ops
`AtenCloneOp` and `AtenEm...
This commit does a couple of things. First, it fixes a bug in the
`linalg.generic` body of the ...
Its unclear to me what the right layering is here: Are you expecting
torch-mlir-dialects to alwa...
This should be set elsewhere depending on the build configuration.
In particular, we need to be...
`aten.hardswish` op is decomposed into (x/6) * Relu6(x+3).
7c637eebc35b77bf834331f54d718c3440d0b683 authored almost 3 years agoThis reverts commit 442ff4605c54f836afa17d2780bd9bddcc2a5ed8.
056cd2078dfe0e0fe53b4f7b2099db878fcd559f authored almost 3 years ago
This commit adds the invariant to the op `torch.overwrite.tensor.contents` that
both of its ope...
There are cases where the op may update the same indices multiple
times. In this context, we can...
* Fix setup.py backwards compatibiity
* Remove version check
7023ee53e8e8b7017eb51a38b34a4cbb40fdb8ba authored almost 3 years ago
This commit adds handling to the `maximize-value-semantics` pass for
the case where a view-like...
This commit adds static type information support to `aten.mm`. This is
needed for the forward p...
New str argument approximation is added.
abbde7d439836ab359f64f84ba1f1740f06c765b authored almost 3 years ago
The check for `self.hasSizes` was missing before performing `.size()`
operation.
Major changes: opTrait changed to Trait, selectOp moved to arith dialect
assertOp moved to cf dia...
- This commit decomposes the `aten.batch_norm` op into the
`aten.native_batch_norm` op, instea...
Signed-off-by: Anup Gangwar <[email protected]>
Co-authored-by: Anup Gangwar <anup.gangwar...
c60468f141e6a6e5b5e413933c13ea85376344c1 authored almost 3 years ago
The external projects torch-mlir and torch-mlir-dialects should be
placed inside double quotes.
`aten.log_softmax` is decomposed to be more numerically stable.
8b79b5f48fb0e810831a51d1d46ccf9d59faa63d authored almost 3 years ago
This is intended to explore support for non-structured ops that can't
be modeled by Linalg diale...
This commit adds lowering of `aten.Hardsigmoid` op.
Signed-Off-by: Gaurav Shukla <gaurav@nod-la...
cd21dda867b9e5783795864cd00118b33aa91dc7 authored almost 3 years ago
This commit adds the op `PseudoAtenFillScalarOp` that represents
`AtenFill_ScalarOp` without th...
- This commit adds lowering of `aten.le.Scalar` and `aten.ge.Scalar` ops
as a part of `convert...
This commit adds the op `PseudoAtenBernoulliFloatOp` that represents
`AtenBernoulli_FloatOp` wi...
dfc07d11d7def66ec8078464907e3e4b45967017 authored almost 3 years ago
- This commit adds lowering of `aten.eq.int` op as a part of
`convert-torch-to-std` pass.
- It...
- This commit adds lowering of `aten.Bool.Tensor` and
`aten.Float.Tensor` op as a part of `con...
9e7b6cab08d9e43d391bbee7f259589024221e6c authored almost 3 years ago
- The `self` name is being used as a keyword argument to the
`torch.ops.aten.nll_loss_backward...
Some of the lowerings use the result type obtained from the op itself
to tell the `linalg::Gene...
Prior to this commit, importing a `prim::Constant` node with list type would result in an error ...
73ac9a7e2e8715ccac533db7ee582570f3969822 authored almost 3 years agoce4d6d1f8332510e8c0e831a409942d7e6d75377 authored almost 3 years ago
* [tosa] Support for AtenNe[Tensor|Scalar]Op, AtenLog2Op,
AtenBitwiseAndTensorOp, AtenSquareOp ...
This commit fixes an error in the refine types pass of constant
allocation ops. The function us...
1ab2e3260b634b8388bc5a20ccec1ec9e0a914af authored almost 3 years ago
aten.bernoulli is decomposed to aten.gtTensor(aten.uniform(x), x).
258660deb6bcbbf0b146e45cb9783e4656ff746e authored almost 3 years agoDecompose _log_softmax into log(softmax(x)).
102c497c4cc94b0dbae1c786b657715d8cc7b010 authored almost 3 years ago
This commit adds decomposition of `aten._unsafe_view` op into
`aten.view` op.
Signed-Off-By: Pr...
318946a650fdc44d2c6393ff0e80907dde494333 authored almost 3 years agoThis commit adds support for the aten.clone op.
9b89f8eb3f9825a6c13d20dd960b8c7499699f5e authored almost 3 years ago
- This commit adds `aten.assert` op in the Torch dialect.
- The `aten.assert` op is lowered to `...
e09e2cbe700481ac5b68f4be6d429edfb7089d04 authored almost 3 years ago
Also change the 3rd dimension to be smaller so that CI can pass without
killing the process.
- This commit adds support for `aten.native_batch_norm` operation.
- The current implementation ...
Conversion of torch.bool tensor type to float and integer type is
handled.
* [tosa] Support for AtenPermuteOp
Signed-off-by: Anup Gangwar <[email protected]>
f9f97ea1842df98b16a4c58d1bd12fa3f7f6dced authored about 3 years ago
The lowering of aten::nll_loss_backward op has been added
from torch to linalg dialect. The chan...
The softmax decomposition is modified according to https://github.com/pytorch/functorch/blob/mai...
68acc8696e22a8806a530944992e08aed712c49b authored about 3 years ago
This commit decomposes `aten.reshape` into `aten.view` op in the case of
value tensor type opera...
Handles Linear, Adaptive_AvgPool2D and FlattenUsintInts
Adds ResNet18 static model for TOSA
...
1b505cbac506d80a466f88afc4d0c6a6aa3d347c authored about 3 years ago
This PR include the following pieces:
- Add torch `Generator` type. `Generator` type is converte...
Signed-off-by: Suraj Sudhir <[email protected]>
0f083e770a38baabec3817d5a3e86f263c9dc5bf authored about 3 years ago5d9a15263a1c43bd62d3f2cd2366b72b186edbb5 authored about 3 years ago
Lowering of `aten.max.dim` op has been added.
e58b66bc3b4d2f48df81d22d6e65a659a6f9f327 authored about 3 years ago