Skip to content

Support broadcasting in type inference and checking #154

Description

@fabio-innatera

Right now, we assume (in both type inference and checking) that data/tensors flowing from one node to the next have the exact same shape.

PyTorch and other frameworks allow broadcasting, we should too.

ONNX documentation:
https://onnx.ai/onnx/repo-docs/Broadcasting.html

Numpy:
https://numpy.org/doc/stable/user/basics.broadcasting.html

PyTorch:
https://docs.pytorch.org/docs/stable/notes/broadcasting.html

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