torch-mlir/build_tools/python_deploy
Sean Silva 28957adaac [torchdynamo] Initial TorchDynamo support
This adds a basic e2e Config for TorchDynamo using
Linalg-on-Tensors/RefBackend.
But TorchDynamo is pretty orthogonal to
various other pieces, so it should compose nicely with variations like:
- Switching out all the backends (Linalg-on-Tensors, TOSA, MHLO)
- PyTorch functionalization and decompositions
- Taking the example inputs and compiling with all dynamic or all static
  shapes without duplicating tests.

This adds it to the CI, but there are still a lot of XFAIL's.

This also adds a helper `from torch_mlir.dynamo import
make_simple_dynamo_backend` which simplifies some of the steps for
making a Torch-MLIR-based TorchDynamo backend. We include "simple" in
the name because we are going to be exploring various things next from
the long-term roadmap.

The next steps are:
- Burn down all the XFAIL's.
- Start working on the pieces from the [long-term roadmap](https://github.com/llvm/torch-mlir/blob/main/docs/long_term_roadmap.md).
  - Add functionalization/decompositions into the TorchDynamo flow and
    remove reliance on the current Torch-MLIR "frontend".
  - Write a pure-Python direct FX->MLIR importer.
  - Hook up the new PyTorch symbolic shape stuff.
  - Explore PrimTorch decompositions for simplifying backends.
2022-11-24 04:10:25 -08:00
..
.gitignore Add oneshot release snapshot for test/ondemand (#768) 2022-04-21 02:19:12 -07:00
build_linux_packages.sh [torchdynamo] Initial TorchDynamo support 2022-11-24 04:10:25 -08:00
build_macos_packages.sh Reenable LTC in out-of-tree build (for real this time) (#1205) 2022-08-19 15:25:00 -04:00
build_upload_m1_snapshot.sh build: improve robustness of cmake and shell scripts (#1018) 2022-07-06 14:39:30 -07:00
build_windows.ps1 ci: re-add powershell script for windows release builds (#1561) 2022-11-06 12:48:38 -06:00
build_windows_ci.sh ci: enable ccache on Windows (#1548) 2022-11-03 12:17:22 -05:00
install_macos_deps.sh Fix OSX nightly builds (#1032) 2022-07-10 22:17:01 -07:00