onnx / optimizer

Actively maintained ONNX Optimizer
Apache License 2.0
647 stars 90 forks source link

optimization passes #141

Closed ohjunee closed 1 year ago

ohjunee commented 1 year ago
  1. why did the onnx optimizer name the factor for optimization "pass"? Is there a reason ??

  2. I want to do an impact measurement by layer/operator (fused layer/module) to see how it affects the layer optimized with onnx optimizer, is there any evidence that it improves performance?

daquexian commented 1 year ago

why did the onnx optimizer name the factor for optimization "pass"? Is there a reason ??

It is from the compiler field. Initially a "pass" means traversing the computation graph once, now people use it to describe something like pattern matching.

daquexian commented 1 year ago

I want to do an impact measurement by layer/operator (fused layer/module) to see how it affects the layer optimized with onnx optimizer, is there any evidence that it improves performance?

you might want to use onnxsim, which is a more powerful tool based on onnx optimizer

daquexian commented 1 year ago

closing. feel free to reopen it if you have any further questions