for rocm4.3.1 compute platform index, use --index-url https://sonatype-nexus-community.github.io/pytorch-pypi/whl/rocm4.3.1/simple
--index-url https://sonatype-nexus-community.github.io/pytorch-pypi/whl/rocm4.3.1/simple
see also other available indexes