Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create MLIR functions for ONNX operators that are functions #3409

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def _module_lowering(
# Lower from ONNX to Torch
run_pipeline_with_repro_report(
torch_mod,
f"builtin.module(func.func({ONNX_TO_TORCH_FUNC_PIPELINE}))",
# The importer may produce additional MLIR functions corresponding to
# ONNX operators that are functions. In some cases they need to be
# inlined to avoid the backend choking on them.
f"builtin.module(inline, func.func({ONNX_TO_TORCH_FUNC_PIPELINE}))",
andfau-amd marked this conversation as resolved.
Show resolved Hide resolved
"Lowering Onnx backend contract to Linalg-on-Tensors backend contract",
)

Expand Down
Loading
Loading