RuntimeError: maximum recursion depth exceeded in cmp

I run the model using PyTorch,and after a few seconds,the program terminated and showed the error message:
RuntimeError: maximum recursion depth exceeded in cmp
I can’t understand why error could happen,because at first I inputted the model with mnist data and it worked.Did anyone encounter the same problem?

this seems like a python issue where you wrote some recursive function and it doesn’t have a break.

Dose it mean the recursion is too deep ,or the batch data is too big?

it means that the recursion is too deep. I doubt it has anything to do with batch data.

OK,thanks for your reply