Views
No views yet
blocksize overflow PoConnx.shape_inference and onnxruntime
during model loading / shape inference.depthtospace-blocksize-overflow.onnxDepthToSpaceblocksize = 4294967296[1, 2, 1, 1]1python3 -m pip install onnx onnxruntime
2python3 - <<'PY'
3import onnx
4import onnxruntime as ort
5
6model = "depthtospace-blocksize-overflow.onnx"
7onnx.checker.check_model(model)
8print("checker ok")
9onnx.shape_inference.infer_shapes_path(model)
10print("unreachable if the issue reproduces")
11PYonnx.checker.check_model(...) succeedsonnx.shape_inference crashes the processonnxruntime.InferenceSession(model) crashes the process during load