-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support axis equal to tensor rank in
Flatten
operator
Unlike most operators with an `axis` attribute, the value here can be equal to the tensor rank because it is a count of dimensions. Per spec [^1]: > Indicate up to which input dimensions (exclusive) should be flattened to > the outer dimension of the output. The value for axis must be in the range > [-r, r], where r is the rank of the input tensor. [^1]: https://onnx.ai/onnx/operators/onnx__Flatten.html#attributes
- Loading branch information
1 parent
e48df48
commit 4236297
Showing
1 changed file
with
73 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters