--- ./build/Linux/RelWithDebInfo/_deps/onnx-src/onnx/helper.py.origin	2024-09-08 12:07:14.373204010 -0500
+++ ./build/Linux/RelWithDebInfo/_deps/onnx-src/onnx/helper.py	2024-09-08 12:08:45.368234935 -0500
@@ -5,6 +5,7 @@
 import collections.abc
 import numbers
 import struct
+import sys
 from cmath import isnan
 from typing import (
     Any,
@@ -732,6 +733,11 @@
 
     if raw:
         tensor.raw_data = vals
+        if sys.byteorder == 'big':
+           vals_ndarray = np.frombuffer(vals, np_dtype, count=-1, offset=0)
+           if type(vals_ndarray) is np.ndarray:
+              raw_data_le_temp = vals_ndarray.byteswap(inplace=False)
+              tensor.raw_data = raw_data_le_temp.tobytes()
     else:
         if data_type in (TensorProto.COMPLEX64, TensorProto.COMPLEX128):
             vals = split_complex_to_pairs(vals)
