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

Support vector inputs in MatMul operator #418

Merged
merged 1 commit into from
Nov 29, 2024
Merged

Support vector inputs in MatMul operator #418

merged 1 commit into from
Nov 29, 2024

Commits on Nov 29, 2024

  1. Support vector inputs in MatMul operator

    The ONNX spec states that the MatMul operator is a "Matrix product that behaves
    like numpy.matmul". `numpy.matmul` supports vector inputs:
    
    > If the first argument is 1-D, it is promoted to a matrix by prepending a 1
    > to its dimensions. After matrix multiplication the prepended 1 is removed.
    > If the second argument is 1-D, it is promoted to a matrix by appending a 1
    > to its dimensions. After matrix multiplication the appended 1 is removed.
    
    Implement this behavior in RTen.
    robertknight committed Nov 29, 2024
    Configuration menu
    Copy the full SHA
    990ce22 View commit details
    Browse the repository at this point in the history