Cuda and conv layer

when i add cuda to the conv network, my network stops working. If you make a network on Linear, then everything works … Who knows why?
The forward pass works, but the return does not.

Could you post a code snippet, which reproduces this issue?

The problem was that I used cuda 9.2. When I installed cuda 10, the problem was resolved.