Yeah you’re right, but i also with os.environ function, but it was not allowing me to give it int but only string so i passed “1” but the error message stay the same…
Anyway, even with the default error message I found my error.
For those who still have the error and use BCELoss, make sure values are between 0 and 1.
Thx ptrblc for your reply.