-
Notifications
You must be signed in to change notification settings - Fork 46
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
The input of triangular
should be at least 2D tensor
#494
Labels
Comments
...
Arguments:
- input: an [MLOperand](https://www.w3.org/TR/webnn/#mloperand). The input 2-D tensor.
+ input: an [MLOperand](https://www.w3.org/TR/webnn/#mloperand). The input tensor which is at least 2D.
options: an optional [MLTriangularOptions](https://www.w3.org/TR/webnn/#dictdef-mltriangularoptions). The optional parameters of the operation.
- Returns: an [MLOperand](https://www.w3.org/TR/webnn/#mloperand). The output 2-D tensor representing a triangular matrix.
+ Returns: an [MLOperand](https://www.w3.org/TR/webnn/#mloperand). The output tensor representing a triangular matrix which is the same shape as the input.
...
+ // lower triangular matrix with two batches:
+ // [[[7, 0, 0],
+ // [9, 4, 0],
+ // [2, 6, 3]],
+ // [[1, 0, 0],
+ // [4, 5, 0],
+ // [7, 8, 9]]]
+ const lower = builder.triangular(input, { upper: false }); |
Thanks @fdwr ! |
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Feb 1, 2024
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Feb 1, 2024
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Feb 6, 2024
3 tasks
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Feb 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is raised by @fdwr on reviewing implementation for
triangular
op on webmachinelearning/webnn-baseline#64. (Thanks Dwayne!)The text was updated successfully, but these errors were encountered: