forked from onnx/onnx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use rank in data propagation (onnx#6557)
### Description Redo of onnx#6553 (due to DCO/signoff issues) Extend the implementation of partial data propagation to make use of the rank of a tensor, if known. ### Motivation and Context This enables more precise shape inference, especially in the presence of dynamic shapes involving some unknown dimensions. Generated models often use computed shapes that mix statically known and statically unknown dimensions (for example, in an expression such as `Concat (BatchSize, SequenceLength, OtherKnownDimensions)`). Even if `BatchSize` and `SequenceLength` are unknown, the other dimensions may be known, and it useful to track them to enable certain optimizations. Signed-off-by: Ganesan Ramalingam <[email protected]>
- Loading branch information
1 parent
4e29344
commit 96a0ca4
Showing
2 changed files
with
38 additions
and
0 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
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