Inconsistency in conv+bn fusion and addition of useless reshapes in tf2onnx==1.16.1 #2300
Labels
bug
An unexpected problem or unintended behavior
pending on user response
Waiting for more information or validation from user
Describe the bug
When I convert a u-net architecture a Conv operator and a BN operator are not fused together and 2 Reshape operators are added which reshape to the same shape [-1, 512, 1, 1].
Urgency
none
System information
To Reproduce
https://drive.google.com/file/d/1xzaAXWxUqXUTBVgDSiyrbjs_TSHXuhwW
by running
python -m tf2onnx.convert --saved-model bg_model --output bg_model.onnx
Screenshots
from the top the first conv+bn is fused correctly, then the following is not.
Additional context
Every other conv+bn is fused correctly except one.
The text was updated successfully, but these errors were encountered: