According to the Linux support matrices by ROCm version documentation:
ONNX Version 1.18 is compatible with ROCm Version 6.2.3
The error I saw in your comment isn't related to ROCm or ONNX:
"E: Failed to fetch https://repo.radeon.com/amdgpu/6.2.3/ubuntu/dists/jammy/main/binary-amd64/Packages.gz File has unexpected size (14796 != 14502). Mirror sync in progress? [IP: 2.23.13.7 443]"
That's a APT package manager error, meaning you try to run this command "amdgpu-install -y --usecase=graphics,rocm" without run a "sudo apt update" first, because the metadata for this file: "Packages.gz" changed you OS is expecting a size of 14796 from local repo cache information but online repo indicate a size of 14502. This could be solved with a "sudo apt update". try
Reference:
https://rocm.docs.amd.com/projects/radeon/en/latest/docs/compatibility/native_linux/native_linux_com...