mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-23 22:13:38 +00:00
### Upstream reshape of merging batch/sequence For Reshape node that fulfills following requirements: - input data rank = 3 - input shape is constant initializer, the untorched dim value MUST be a constant value. - Reshape is merging the first dimension, so output data rank = 2. We upstream it to make it run as earlier as possible. Doing this will allow us to upstream other operators (Gather) that is blocked by those kind of Reshape node. Currently, we did not enable it in graph_transformer_utils, since the combined upstream gather changes are not ready yet. Before:  After:  |
||
|---|---|---|
| .. | ||
| orttraining | ||
| pytorch_frontend_examples | ||
| tools | ||