Results 78 comments of Chi_Liu

Can be fixed by @pashu123 's patch https://github.com/pashu123/iree/tree/scan_tile_issue, need to be merged

> Can be fixed by @pashu123 's patch https://github.com/pashu123/iree/tree/scan_tile_issue, need to be merged PR https://github.com/iree-org/iree/pull/17761

When tested with the t5 model, it breaks before the index_put op is generated by slice and copy pattern. ``` File "/nodclouddata/chi/src/torch-mlir/build/tools/torch-mlir/python_packages/torch_mlir/torch_mlir/compiler_utils.py", line 69, in run_pipeline_with_repro_report raise TorchMlirCompilerError(trimmed_message) from None...

[test_slicecopy.py](https://gist.github.com/AmosLewis/c6007c2154fedd51081faaee903a1b2c#file-test_slicecopy-py) Get the decompose pass. But then lower to stablehlo bug. ``` Legalizing operation : 'torch.aten.index_put.hacked_twin'(0xeb61fd0) { %90 = "torch.aten.index_put.hacked_twin"(%15, %89, %49, %10) : (!torch.vtensor, !torch.list, !torch.vtensor, !torch.bool) -> !torch.vtensor...

[indexput_hacked_twin_debuginfo.txt](https://gist.github.com/AmosLewis/960681429accac3f435df193419a38fe#file-indexput_hacked_twin_debuginfo-txt) `error: number of output elements (3) doesn't match expected number of elements (1)` the issue is with this https://github.com/llvm/torch-mlir/pull/2407/files#diff-37f576362dfffc48c6d013a2edd9357d53d2bb08345a7d8e7f7217cea90701c8R610-R611 reshape op. It generates this op %92 = "stablehlo.reshape"(%90) :...

indexput.hacked_twin to stablehlo Done. Here is the Python e2e tests. ``` import torch import torch_mlir class Net(torch.nn.Module): def __init__(self) -> None: super().__init__() def forward(self, input, index1, index2, src): return torch.index_put(input,...

Adding 34 indexput related torchdynamo xfail DONE. Next, fix **TorchDynamo** e2e test crush , add linalg e2e fail. and rewrite **tosa** indexput. **TorchDynamo e2e test:** ``` python -m e2e_testing.main -f...

TorchDynamo e2e test crush DONE. Add 41 linalg e2e xfail DONE. https://github.com/llvm/torch-mlir/actions/runs/6026994334/job/16351185680

Fix tosa indexput support DONE. And pass the broke tosa e2e tests `IndexPutImpl2DNoneIndexStaticModule_basic`. ``` module attributes {torch.debug_module_name = "IndexPutImpl2DNoneIndexStaticModule"} { func.func @forward(%arg0: !torch.vtensor loc(unknown), %arg1: !torch.vtensor loc(unknown), %arg2: !torch.vtensor loc(unknown))...

Accidentally merge a commit from another WIP patch, just clean it.