onnxruntime
0c078dfc - Some Shape Related Fusions (#19832)

Commit
2 years ago
Some Shape Related Fusions (#19832) This PR adds below shape related fusions, which is helpful for some transformer models: - ShapeInputMerge is to merge all Shape nodes' input NodeArg to a single one (the 1st one on topo order) if they have the same shape value. This helps CSE fusion to merge more nodes. - CSE fusion to support scalar tensor as attribute value. This is mainly to support ConstantOfShape node.
Author
Parents
Loading