Sorry for my late reply.
Thank you for your suggestions.
I initially wondered if it was a pytorch version problem…but it was my fault 
Finally I found that there was a memory access error when running my kernel.
So, thank you again, and I want to tell the people who may have same problem with me that just check your code first