torch-mlir/projects/pt1/python/torch_mlir
IanWood1 5708ee7ec9
Added 2 Ops: Floor divide scalar and Floor divide scalar mode (#3156)
- Added linalg lowering for `AtenFloorDivideScalarOp`
  - Needed `AtenDivScalarModeOp` for the decomp.
- Added linalg lowering for `AtenDivScalarModeOp`
- Moved linalg payload logic to `createDivModePayload()` since the logic
was nearly identical for both `AtenDivScalarModeOp` and
`AtenDivTensorModeOp`. Just a template function
 -  Added `AtenDivScalarModeOp` lowering for stablehlo
 

Pytorch's
[`torch.floor_divide()`](https://pytorch.org/docs/stable/generated/torch.floor_divide.html)
in a previous version (for a reason unknown to me) preformed a
truncation instead of "floor". The already implemented op
`AtenFloorDivideTensorOp` was done before this change. However, this
wasn't caught because our testcases only tested positive floor division.
I changed this to floor as well as adding a few test cases.
2024-04-15 13:45:10 -07:00
..
_torch_mlir_custom_op_example Re-organize project structure to separate PyTorch dependencies from core project. (#2542) 2023-11-02 19:45:55 -07:00
csrc Clang format refresh (#2812) 2024-01-29 12:59:33 -05:00
jit_ir_importer Added 2 Ops: Floor divide scalar and Floor divide scalar mode (#3156) 2024-04-15 13:45:10 -07:00
_dynamo_fx_importer.py Add stateless fx graph import (#3036) 2024-03-21 14:44:54 -07:00
_version.py Re-organize project structure to separate PyTorch dependencies from core project. (#2542) 2023-11-02 19:45:55 -07:00
compiler_utils.py [torch-mlir][NFC] remove trailing whitespace (#2936) 2024-02-20 11:23:14 -08:00
dynamo.py [torch-mlir][NFC] remove trailing whitespace (#2936) 2024-02-20 11:23:14 -08:00
torchscript.py Converts all Adaptive Pooling Ops to Linalg (#2808) 2024-03-22 11:05:20 -07:00