torch-mlir/lib/Conversion
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
..
TorchConversionToMLProgram Fix a few missing dependencies. (#2014) 2023-04-11 11:18:49 -07:00
TorchToArith [MLIR][TORCH] Extend implementation of aten._index_put_impl op. 2023-04-05 14:04:30 +05:30
TorchToLinalg Fix default value of `stride` in 2d pooling ops in linalg and tosa (#2065) 2023-04-27 08:31:36 -07:00
TorchToSCF build: update llvm tag to 798fa4b4 (#1684) 2022-12-07 12:20:41 -08:00
TorchToStablehlo [MLIR][TORCH] Patch up Ops and their lowerings to deal with +ve `dim` 2023-04-14 13:12:56 +05:30
TorchToTMTensor Update to LLVM 3157f03a349cfc852cdd994675eaa9652caa2e3a (#2060) 2023-04-25 08:52:46 -07:00
TorchToTosa Fix default value of `stride` in 2d pooling ops in linalg and tosa (#2065) 2023-04-27 08:31:36 -07:00
Utils Update to LLVM 3157f03a349cfc852cdd994675eaa9652caa2e3a (#2060) 2023-04-25 08:52:46 -07:00
CMakeLists.txt mhlo: migrate conversion to stablehlo (#1840) 2023-02-02 07:29:47 -06:00
PassDetail.h Minor fixes for `ConvertTorchConversionToMLProgram`. (#1991) 2023-04-04 09:09:58 -07:00
Passes.cpp mhlo: migrate conversion to stablehlo (#1840) 2023-02-02 07:29:47 -06:00