torch-mlir/test/Dialect/ATen
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
..
aten_add.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_addmm.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_as_strided.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_batchnorm.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_conv2d.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_conv2d_back.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_maxpool2d.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_relu.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
aten_resA.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00
lenet_fwd.mlir Add ATen Dialect (#16) 2020-08-12 19:28:04 -07:00