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
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