torch-mlir/python/torch_mlir/csrc/base_lazy_backend
Gleb Kazantaev 804f9f1f8f
Extended TorchMLIRLoweringContext with virtual CreateComputation method (#1699)
* Extended TorchMLIRLoweringContext with virtual CreateComputation method

* Fix device_data_cast return value
2022-12-08 15:57:07 -05:00
..
ops Propagate parameter names to TorchMlirComputation (#1420) 2022-09-29 11:43:39 -04:00
utils Extended TorchMLIRLoweringContext with virtual CreateComputation method (#1699) 2022-12-08 15:57:07 -05:00
CMakeLists.txt Propagate parameter names to TorchMlirComputation (#1420) 2022-09-29 11:43:39 -04:00
README.md Update Torch MLIR readme 2022-07-30 09:40:02 -04:00
backend_impl.cpp Update TorchMlirBackendImpl Methods (#1580) 2022-11-14 00:37:49 -05:00
backend_impl.h Update TorchMlirBackendImpl Methods (#1580) 2022-11-14 00:37:49 -05:00
dynamic_ir.cpp Resolve CI testing failure for Lazy Tensor Core (#1088) 2022-07-30 09:40:02 -04:00
dynamic_ir.h Fix LTC Decoupling (#815) 2022-07-30 09:40:02 -04:00
ir_builder.h Remove MakeView from IR Builder (#1552) 2022-11-09 13:46:34 -05:00
mlir_lowering_context.cpp Extended TorchMLIRLoweringContext with virtual CreateComputation method (#1699) 2022-12-08 15:57:07 -05:00
mlir_lowering_context.h Extended TorchMLIRLoweringContext with virtual CreateComputation method (#1699) 2022-12-08 15:57:07 -05:00
mlir_native_functions.cpp Fix `fromIntArrayRef` call (#1479) 2022-10-11 13:29:07 -04:00
mlir_node.cpp Propagate parameter names to TorchMlirComputation (#1420) 2022-09-29 11:43:39 -04:00
mlir_node.h Propagate parameter names to TorchMlirComputation (#1420) 2022-09-29 11:43:39 -04:00
mlir_node_lowering.cpp Revert "build: update llvm tag to 147fe9de" 2022-11-25 12:41:56 +05:30
mlir_node_lowering.h Generate MLIR with shape information via LTC frontend (#742) 2022-07-30 09:40:02 -04:00
shape_inference.cpp New ops support & enhancements (#1494) 2022-10-14 10:28:21 -04:00

README.md

Torch-MLIR Lazy Tensor Core Backend

Detailed Documentation

Detailed documentation about the architecture of this LTC backend is available here.

Summary

Contained within this directory are the components that implements the Torch-MLIR LTC backend. Note that the code style for LTC components is consistent with that of LTC itself, rather than the rest of Torch-MLIR.

The components are subclasses of the backend API interface classes found under torch/csrc/lazy/backend.

Importantly, the subclasses are still abstract classes. Pure virtual methods such as Compile were purposefully not overriden as Torch-MLIR does not know how to compile the model for the target hardware.

The intent is that vendor hardware specific plugins will subclass the Torch-MLIR backend classes and override the remaining pure virtual functions to complete the backend.

The Torch-MLIR LTC backend's job is to perform the lowering from ATen to MLIR. A hardware vendor's backend job is to take care of the actual compile and execution of the lowered MLIR.