Hello, First, please check if the issue is reproducible outside PyCharm in the system terminal (or cmd) with the same Python environment and script. If the issue is not reproducible with the system terminal, please provide a simplified version of your project, the requirements file for the Python environment, and IDE logs (Help | Collect Logs and Diagnostic Data). You can upload the required files here and tell us the upload ID: https://uploads.services.jetbrains.com/
And my python version is 3.9.18 , torch version is 2.0.1+cu117.
First, please check if the issue is reproducible outside PyCharm in the system terminal (or cmd) with the same Python environment and script.
If the issue is not reproducible with the system terminal, please provide a simplified version of your project, the requirements file for the Python environment, and IDE logs (Help | Collect Logs and Diagnostic Data). You can upload the required files here and tell us the upload ID: https://uploads.services.jetbrains.com/