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

[MLIR][linalg] Fix unpack rewriter for dynamic shapes #67096

Merged
merged 1 commit into from
Sep 22, 2023

Commits on Sep 22, 2023

  1. [MLIR][linalg] Fix unpack rewriter for dynamic shapes

    Prior to this patch, `GeneralizeOuterUnitDimsUnPackOpPattern` would assert
    that we cannot create a `tensor.empty` operation with dynamic shapes.
    
    The problem stems from the fact that we were not using the right builder
    for the `tensor.empty` operation. Indeed, each dynamic dim needs to be
    specified by an input variable.
    
    Simply provide the dynamic dimensions to the `tensor.empty` builder to fix
    that.
    qcolombet committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    b7bfe57 View commit details
    Browse the repository at this point in the history