Skip to content

[MLIR] Changes to fallback Batch implementation #2526

@avik-pal

Description

@avik-pal
  • When copying the attributes currently we use the attributes for the source operation. Instead for better default operation coverage, we can do:
    • If name contains "dimensions" and is a array attr, we offset each of the dimensions by batchSizes.size()
    • If name contains "dimension" and is a integer attr, we offset that by batchSizes.size()
  • When cloning an operation with no operands, we should instead clone the operation without updating anything and instead do a broadcast_in_dim on the result of the operation. We should clone the regions as we did before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions