opened
JonTriebenbach
username_0
E           AssertionError: 
E           Arrays are not almost equal to 7 decimals
E           
E           Mismatched elements: 3 / 3 (100%)
E           Max absolute difference: 2.7824624e+14
E           Max relative difference: 1.0692023e+32
E            x: array([-1.3619891,  2.4206262,  2.2576501], dtype=float32)
E            y: array([-4.7447069e-14, -2.2639551e-32,  2.7824624e+14], dtype=float32)

optimizer_test.py:1509: AssertionError

```

The `fuse_bn_into_conv.h` code does not account for potentially running on a big-endian architecture machine when running the optimization routines.

Attached is a patch file with updated source files with a proposed fix for this optimization issue.

[onnx-opt.patch.zip](https://github.com/onnx/onnx/files/5157259/onnx-opt.patch.zip)

A pull request can be submitted if needed.
fuse_bn_into_conv optimization fails on big-endian architecture
issue