Skip to content

Handle cases when Div/Sub would be needed in shapes #246

@janimo

Description

@janimo

chunk() and split() operations calculate the ouput dim by dividing the input dim.
slice() or narrow() for the last element(s) along a dim need to subtract from the dim lenght.

Div and Sub are not supported in the Nat based shape expression verifier so we need workarounds for these common operations.
For example a chunk with a known fixed number of chunks can be replaced by that many manual calls to slice()

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