commit | f0e8cda0776973feb5a8caeca86929211733eb64 | [log] [tgz] |
---|---|---|
author | Max191 <44243577+Max191@users.noreply.github.com> | Fri Aug 09 08:56:33 2024 -0700 |
committer | GitHub <noreply@github.com> | Fri Aug 09 15:56:33 2024 +0000 |
tree | 194660dce2c22a3d183c0aa26c888147f662e22b | |
parent | 1fddcd6429754fd0f92b22fb4f570ff768f21337 [diff] |
[Codegen][IGEMM] Add new pass for IGEMM transformation with reshape propagation (#18161) This PR adds a new pass to perform the IGEMM transformation in Codegen. The new pass uses the `Conv2DToIm2colOp` patterns plus some reshape propagation and cleanup patterns. The PR also adds a control function on the `Conv2DToIm2colOp` patterns, in order to avoid transforming configured operations. This separates the `Conv2DToIm2colOp` transformation from the codegen-specific IGEMM pipeline, and addresses an issue with fusions that requires reshape propagation. When there are consumers of the convolution op, the consumer needs to also be collapsed in order to tile and fuse it with the GEMM. Adding reshape propagation is just one solution to the fusion issue. The other potential solution is to allow the im2col op to have multiple M dimensions in its result, and create a multi-M contraction instead of the collapsed version. This second solution is ideal as long as backends are able to handle the multi-M contraction, but it requires more work to change the im2col op semantics. For now this PR fixes the issue, and the alternative solution is left as a TODO. --------- Signed-off-by: Max Dawkins <max.dawkins@gmail.com>
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels
Package | Release status |
---|---|
GitHub release (stable) | |
GitHub release (nightly) | |
Python iree-compiler | |
Python iree-runtime |
Host platform | Build status |
---|---|
Linux | |
macOS | |
Windows |
For the full list of workflows see https://iree.dev/developers/general/github-actions/.
See our website for more information.
Community meeting recordings: IREE YouTube channel
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.