daquexian / onnx-simplifier

Simplify your onnx model
Apache License 2.0
3.67k stars 377 forks source link

How to prevent constant folding some of the specific node #299

Open LuTaoChen opened 1 year ago

LuTaoChen commented 1 year ago

"Shape" nodes seem to be folded in onnxsim.simplify(). Might cause error in dynamic shape inference. I was wandering how to specify these nodes