Optimizer Suggestions for Common Graph Fusions #2301
Labels
contribution welcome
We welcome code contributions for this
good first issue
Good for newcomers
module: rewriter
Uh oh!
There was an error while loading. Please reload this page.
I've been using ONNXScript extensively lately and really appreciate how powerful and flexible it is. As part of that experience, I and @Johansmm would like to suggest a few optimization patterns that could improve performance and simplify common model graphs. These are generally applicable across many models:
BatchNormalization
into preceding nodes (Conv
,ConvTranspose
,Gemm
) Rewriter: Fold Batchnorm nodes #2312MatMul + Add
intoGemm
Min + Max
intoClip
Reshape
/Flatten
nodesPad
intoConv
/ConvTranspose
Clip
/ReLU
nodesWe're happy to contribute if any of these are a good fit. Feel free to add other suggestions or let us know if some of these are out of scope.
The text was updated successfully, but these errors were encountered: