It seems you are encountering a segmentation fault (SIGSEGV) error, which can be caused by various reasons, such as memory access issues, incorrect library versions, or problems with the underlying system. To troubleshoot this issue, consider the following steps:
Update your PyTorch version: You mentioned that you are using PyTorch 0.15.1+ROCM5.4.2, which is an older version. Update your PyTorch installation to the latest version compatible with ROCm by following the official installation guide for ROCm: Deep Learning — ROCm 4.5.0 documentation
Check for GPU compatibility: Ensure that your AMD Radeon RX 6700 XT is compatible with the ROCm version you are using.
Run a ROCm validation test: Make sure your ROCm installation is working correctly. You can do this by running the following command in your terminal: