You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using nn.MSECriterion and I've noticed that the following code results with negative value in very rare cases:
local err = criterion:forward(output, targets)
It happened to me in very rare cases (3-4 times in the last year) - in all cases I trained two networks at the same time over the same gpu.
Note that it happened after thousands of epochs and it is very hard to reproduce.
If someone knows why it can happen or how to fix/avoid it - please let me know.
Thanks in advance,
Itzik.
The text was updated successfully, but these errors were encountered:
I'm using nn.MSECriterion and I've noticed that the following code results with negative value in very rare cases:
local err = criterion:forward(output, targets)
It happened to me in very rare cases (3-4 times in the last year) - in all cases I trained two networks at the same time over the same gpu.
Note that it happened after thousands of epochs and it is very hard to reproduce.
If someone knows why it can happen or how to fix/avoid it - please let me know.
Thanks in advance,
Itzik.
The text was updated successfully, but these errors were encountered: