Thanks, Since this error is thrown randomly, the program runs normally for some iterations until raise this error, it is really hard to find where does the index tensor get changed. And I think I haven’t change the type of index tensor explicitly, do you know which operations in pytorch might change the index tensor implicitly?
Thank you so much.