Maksim Levental
100cb46baa
[Dynamo] fix TORCHDYNAMO_CRASHING_SET ( #2082 )
2023-05-01 21:35:26 -05:00
Ramiro Leal-Cavazos
55caaf6dda
Revert "update PyTorch version to 2.1.0.dev20230430" ( #2080 )
...
This reverts commit eab1930c49
.
The PyTorch version does not yet exist for MacOS.
2023-05-01 15:57:54 -07:00
Roll PyTorch Action
eab1930c49
update PyTorch version to 2.1.0.dev20230430
2023-04-30 13:16:50 +00:00
Maksim Levental
2b56ee46e1
Missing ";" bewtween includes in MHLOTargets.cmake ( #2074 )
...
Co-authored-by: Tilmann Bartsch <info@tebartsch.ai>
2023-04-29 18:05:20 -05:00
Roll PyTorch Action
2994ba00f2
update PyTorch version to 2.1.0.dev20230429
2023-04-29 13:17:28 +00:00
Maksim Levental
c9fba95642
[Dynamo] turn on `no_python=True` for dynamo tests ( #2040 )
2023-04-28 18:05:17 -05:00
Roll PyTorch Action
61a8142d23
update PyTorch version to 2.1.0.dev20230428
2023-04-28 13:31:17 +00:00
Ze Zhang
7b73e0cfaf
Add e2e linalg support for aten.atan ( #2070 )
...
* new atan op
* update shape
---------
Co-authored-by: Ze Zhang <ze.zhang@getcruise.com>
2023-04-28 00:04:58 -07:00
rahul shrivastava
a58442b50d
Add ODS for aten.pow.Scalar
...
Signed-off-by: rahul shrivastava <rahul.shrivastava@cerebras.net>
2023-04-27 22:09:45 +05:30
Vivek Khandelwal
491ae5eda4
[MLIR][TORCH] Add E2E support for aten.var_mean.dim op
...
This commit adds the decomposition for the aten.var_mean.dim op.
Signed-Off By: Vivek Khandelwal<vivek@nod-labs.com>
2023-04-27 22:00:44 +05:30
Ramiro Leal-Cavazos
c8e062fb4e
Fix default value of `stride` in 2d pooling ops in linalg and tosa ( #2065 )
...
When the user does not specify the `stride` value in 2d pooling ops,
`stride` is given the value of an empty list. However, the current
lowerings for pooling ops assumed that the `stride` operand would
always be a list of two ints, leading to crashes when that was not the
case. This commit fixes the crashes by setting the value of `stride`
to `kernel_size` when `stride` is the empty list, since this is the
default `stride` value specified in PyTorch docs. See:
https://pytorch.org/docs/stable/generated/torch.nn.MaxPool2d.html#torch.nn.MaxPool2d
2023-04-27 08:31:36 -07:00
Roll PyTorch Action
24381abea4
update PyTorch version to 2.1.0.dev20230427
2023-04-27 13:32:54 +00:00
Roll PyTorch Action
4f1e8f66ae
update PyTorch version to 2.1.0.dev20230426
2023-04-26 13:32:25 +00:00
Eric Kunze
6a833e1922
Update to LLVM 3157f03a349cfc852cdd994675eaa9652caa2e3a ( #2060 )
...
New requirement to explicitly cast for interfaces https://reviews.llvm.org/D148493
2023-04-25 08:52:46 -07:00
Roll PyTorch Action
6b19c5e582
update PyTorch version to 2.1.0.dev20230425
2023-04-25 13:20:34 +00:00
rahul shrivastava
e3d876af42
Add aten.scatter.value Op ODS
...
Signed-off-by: rahul shrivastava <rahul.shrivastava@cerebras.net>
2023-04-25 11:40:19 +05:30
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
rahul shrivastava
b0f166bb9a
Add Nll_loss2d
...
- Add both forward and backward op
- Add end-to-end xfailed testcases
Signed-off-by: rahul shrivastava <rahul.shrivastava@cerebras.net>
2023-04-24 23:47:26 +05:30
rahul shrivastava
85916dab33
Add ODS for aten.scatter.src
...
Signed-off-by: rahul shrivastava <rahul.shrivastava@cerebras.net>
2023-04-24 23:46:35 +05:30
Sambhav Jain
a3a62a9951
[Bazel] Add `@llvm_zstd` to WORKSPACE ( #2049 )
...
This un-breaks Bazel CI since b31c5fa1fb
.
Manually triggered GHA:
- https://github.com/sjain-stanford/torch-mlir/actions/runs/4764744603 (failed)
- https://github.com/sjain-stanford/torch-mlir/actions/runs/4769130681 (with buildifier fix)
2023-04-24 10:02:33 -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
Ramiro Leal-Cavazos
96d662647f
Fix import of constant bool tensor parameters ( #2047 )
...
Bool tensors are represented in TorchScript as an array of
`int8_t`s. However, when importing them into Torch-MLIR, the importer
was assuming the array had `int32_t` elements, leading to the importer
reading into memory that was out of bounds. This commit fixes the
casting of the bool tensor.
2023-04-20 18:38:48 -07:00
Roll PyTorch Action
97fbb6334b
update PyTorch version to 2.1.0.dev20230420
2023-04-20 13:23:29 +00:00
Ramiro Leal-Cavazos
f85f5799e4
Fix creation of empty tensor in decomposition for randn ops ( #2043 )
...
The current decomposition for `aten.randn.generator` does not specify
the `dtype` argument of the empty tensors created to store the random
values. This leads to invalid IR when the output type of the `randn`
op is not the default PyTorch dtype.
2023-04-19 08:25:39 -07:00
Roll PyTorch Action
dbbcc4aaff
update PyTorch version to 2.1.0.dev20230419
2023-04-19 13:21:44 +00:00
Chi_Liu
8d25dd454f
[TOSA] Add torch.prim.NumToTensor.Scalar float support ( #1802 )
2023-04-18 13:36:57 -07:00
Yuanqiang Liu
4d98f76d4f
[Torch Dialect] fold aten.detach ( #2021 )
2023-04-18 08:59:14 -07:00
Vivek Khandelwal
b0f8572111
build: update llvm tag to 3abae1c8
...
Summary of changes:
- Update tags
llvm: 3abae1c88416858cf2e9a7ed9417bc52033933b4
mhlo: 70ebc73a28767b772e09e0dd03cf3e47457435a2
- Replace uses of `getDynOperands` utility with
`createDynamicDimensions`.
Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-04-18 21:03:39 +05:30
Roll PyTorch Action
c27182ef9c
update PyTorch version to 2.1.0.dev20230418
2023-04-18 13:56:01 +00:00
Vivek Khandelwal
ed56e614b7
[MLIR][TORCH] Add E2E support for cross entropy lowering
...
Signed-Off By: Vivek Khandelwal<vivek@nod-labs.com>
2023-04-18 08:00:20 +05:30
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
Vivek Khandelwal
b31c5fa1fb
build: update llvm tag to 225d255a
...
Summary of changes:
- Update tags
llvm: 225d255a583ea3d50bbba49d949ca76be6a880bf
mhlo: beb5d2b04c33c19d23e02bd3c5e50ddecba11664
Fixes https://github.com/llvm/torch-mlir/issues/1859 .
Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-04-15 06:27:10 +05:30
powderluv
0a3ab07c8f
Set fetch-depth 0 for CI builds too ( #2034 )
2023-04-14 11:36:41 -07:00
Roll PyTorch Action
811f330283
update PyTorch version to 2.1.0.dev20230414
2023-04-14 17:10:36 +00:00
Chi_Liu
f3d1eda09f
[TOSA] Add aten.abs support ( #2032 )
2023-04-14 08:43:39 -07:00
Chi_Liu
ad36e61040
[TOSA] Add aten.le.tensor support ( #2033 )
2023-04-14 08:43:14 -07:00
Abhishek Varma
318fe13468
[MLIR][TORCH] Patch up Ops and their lowerings to deal with +ve `dim`
...
-- In Python we have the concept of negative dimension indexing.
-- We would want to normalize such dimensions to be +ve and within the
expected range instead.
-- This commit takes care of a few remaining set of Ops and their
lowerings by applying `toPositiveDim` and `isValidDim` to the
extracted integer `dim` value.
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com>
2023-04-14 13:12:56 +05:30
Zhekun Zhang
1bd5747ca3
[StableHlo] Fix transposed convolution conversion ( #2026 )
...
* fix conv bwd
* fix
* fix group case
* clean up
---------
Co-authored-by: zhekun.zhang <zhekun.zhang@bytedance.com>
2023-04-13 11:24:39 -07:00
Abhishek Varma
a13d301356
[MLIR][TORCH] Add e2e support for aten.sort op
...
-- This commit adds e2e support for atend.sort op.
-- 1. Adds aten.sort op in torch dialect.
-- 2. Adds tm_tensor.sort op in TMTensor dialect.
-- 3. Adds lowering of aten.sort -> tm_tensor.sort.
Signed-off-by: Abhishek Varma <abhishek@nod-labs.com>
2023-04-13 12:59:43 +05:30
rahuls-cerebras
c2c96c430a
Add Shape inference for CopyOp for lazy tensor core backend ( #2006 )
...
- Add Shape inference for CopyOp for LTC backend
2023-04-12 09:37:03 -04:00
Alexandre Rames
224ee27610
Fix a few missing dependencies. ( #2014 )
...
`TorchToTMTensor` depends on `TorchMLIRTorchUtils` for
`mlir::torch::torch_upstream::get_reduction_enum`.
`TorchMLIRTorchConversionPasses` depends on multiple libs for both tblgen'd
headers and definitions. Test with `ninja TorchMLIRTorchConversionPasses` from
a clean build.
2023-04-11 11:18:49 -07:00
Yuanqiang Liu
72c3326097
[Torch Dialect] support for aten.one_hot ( #1852 )
2023-04-11 01:02:28 -07:00
Yuanqiang Liu
3e83a86354
[Torch Dialect] fix isValidSubtype with dynamic dim ( #2018 )
2023-04-11 01:02:18 -07:00
Vivek Khandelwal
98747d09a8
[MLIR][TORCH] Add support for prims::view_of op
...
This op does nothing and just returns the input operand as the
result of the op.
Signed-Off By: Vivek Khandelwal <vivek@nod-labs.com>
2023-04-11 07:58:10 +05:30
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