The PyTorch binaries are not built with CUDA11.2 and you would have to stick to the install commands provided here.