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