Pytorch and AMD GPU


I have an RX 6700 AMD GPU and I have installed ROCm, which is getting recognized by the driver. Then I installed pytorch for ROCm and when I ran import torch, I got the following:

"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"

Can someone help me with the issue?