This is not the first time I have encountered this problem. I will record the solution here. Although it is very violent, it is easy to use. There should be other solutions. After the experiment is used, it will be supplemented.
This problem occurs because cuda has entered the sleep state, so the program runs incorrectly. The simple and direct solution is to restart the server to solve it perfectly.