When increase batchsize,RuntimeError: cuda runtime error (59) : device-side assert triggered

There will be an error when I increase the batchsize.But there is nothing without changing.

Can you give some more info on this?

Like batch sizes, the GPU memory that you are using, a sample code to reproduce the issue if possible, etc.,

I have solved this problem.
I found when memory wasn’t enough,it would occur this problem