torch-mlir/python/torch_mlir/csrc/base_lazy_backend
Jae Hoon (Antonio) Kim 8967463980
Fix symint ops and blacklist `lift_fresh_copy` (#1373)
* Add symint to native functions yaml

* Re-enable LTC

* Fix new_empty_strided and narrow_copy
2022-09-20 10:16:04 -04:00
..
ops Propagate device data names (#1157) 2022-08-16 09:30:22 -04:00
utils Propagate device data names (#1157) 2022-08-16 09:30:22 -04:00
CMakeLists.txt Fix LTC lib_torch_mlir_ltc.so import error (#1283) 2022-08-25 18:25:01 -04:00
README.md Update Torch MLIR readme 2022-07-30 09:40:02 -04:00
backend_impl.cpp Default Device Ordinal API (#1079) 2022-07-30 09:40:02 -04:00
backend_impl.h Propagate device data names (#1157) 2022-08-16 09:30:22 -04: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 Fix LTC autogen for CI with nightly PyTorch 2022-07-30 09:40:02 -04:00
mlir_lowering_context.cpp Resolve remaining LTC CI failures (#1110) 2022-07-30 09:40:02 -04:00
mlir_lowering_context.h Propagate device data names (#1157) 2022-08-16 09:30:22 -04:00
mlir_native_functions.cpp Fix symint ops and blacklist `lift_fresh_copy` (#1373) 2022-09-20 10:16:04 -04:00
mlir_node.cpp Reference Lazy Backend (#1045) 2022-07-30 09:40:02 -04:00
mlir_node.h Reference Lazy Backend (#1045) 2022-07-30 09:40:02 -04:00
mlir_node_lowering.cpp Resolve remaining LTC CI failures (#1110) 2022-07-30 09:40:02 -04:00
mlir_node_lowering.h Generate MLIR with shape information via LTC frontend (#742) 2022-07-30 09:40:02 -04:00
shape_inference.cpp Resolve remaining LTC CI failures (#1110) 2022-07-30 09:40:02 -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.