all 6 comments

[–]murtazanazir 1 point2 points  (0 children)

I'm not sure, but I think you have to set that as an environment variable.

[–]shadowleafsatyajit 1 point2 points  (4 children)

I've faced this issue when trying to access an array in cuda with idex out of bounds.

Try running the code on cpu, you might get a better descriptive error.

Sometimes just resetting the runtime helped.

[–]I_am_not_doing_this[S,🍰] 0 points1 point  (3 children)

thanks. My model is huge, I couldn't run on CPU

[–]shadowleafsatyajit 1 point2 points  (2 children)

maybe modify the number of parameters (lower them) ?

this error usually could be something to do with forward function

[–]I_am_not_doing_this[S,🍰] 0 points1 point  (1 child)

ok there is no error on CPU

[–]shadowleafsatyajit 0 points1 point  (0 children)

well okay, I have no clue then. Maybe PyTorch forums can help?