torch-mlir
torch-mlir copied to clipboard
Wrap indices to be within max range for as_strided + index_select
Found these issues when trying to lower the ExportedProgram generated from decomposing nn.GRU op in torch.
- Added a new e2e test representing the root cause which involves a special configuration of
as_stridedto reproduce the issue. It requires the other ops in the repro to hit the issue. - For
--config=onnx,index_selectop was generated instead ofas_stridedwhich had the same issue as well.
notify : @justin-ngo-arm as you were the original author for the Tosa conversions of these ops.
@sahas3 Please rebase your PR, so that the CI can be run.
Rebased PR and CI is clean. Thanks!