torch-mlir/include/npcomp
stephenneuendorffer bb668e6e26
Add ATen Dialect (#16)
This patch adds a dialect intended to be used as a frontend dialect
to facilitate lowering from "A Tensor Library" in torch/pytorch.

This patch includes several passes that are useful in conjuction with the
dialect:

--aten-layer-name: Generates layer names for each operation, which are not
  present in the original pytorch.
--aten-to-std: Lower the ATen dialect into standard dialect function calls.
--return-elimination-pass: convert functions (primarily the toplevel function)
  to pass return values by reference.  This simplifies pytorch integration.
--aten-op-report: generate a textual report about the model
--liveness-report

Future patches will implement actual integration with the pytorch jit to
intercept and generates MLIR in this dialect, then lower the resulting MLIR
into function calls through aten-layer-name -> aten-to-std ->
return-elimination -> std-to-llvm. The result would then jitted using the LLVM
jit, linked against a runtime library which makes calls back into pytorch to
implement all the layers.

Co-authored-by: Jeff Fifield <jeff.fifield@xilinx.com>

Co-authored-by: Jeff Fifield <jeff.fifield@xilinx.com>
2020-08-12 19:28:04 -07:00
..
Backend Initial python plumbing to interface with the refjit backend. 2020-07-10 22:57:26 -07:00
Conversion Add NumpyToTCF conversion. 2020-07-08 21:03:57 -07:00
Dialect Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
E2E npcomprt: add support for constants 2020-07-10 17:31:24 -07:00
JITRuntime Add -optimize flag to npcomp-run-mlir so that it runs optimizations. 2020-07-13 16:07:44 -07:00
Python Move most python sources to the include and lib tree. 2020-06-18 18:02:39 -07:00
Typing Complete the basic spike to perform dtype inference. 2020-07-05 16:09:16 -07:00
runtime Rework e2e flow to use new "npcomprt" 2020-07-08 19:36:19 -07:00
CMakeLists.txt Introduce a type interface for mapping to CPA types. 2020-07-02 13:56:27 -07:00
InitAll.h Make a real library for InitAll and extend it to conditionally initialize dependencies. 2020-06-11 17:47:14 -07:00