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
Expected behaviour: this should raise an error or warning saying that extra elements in the loss list are not being used. We can see that ignored_loss is being ignored since no ZeroDivisionError is raised; if we make it the first element in the loss list then we do get the zero division error.
Context: I was trying to do this in the hope that it might somehow weight together the two loss functions (normally in Keras one can easily add extra loss functions like regularization to other parts of the network). For reference, to do that the correct way, see the pattern in this unit test:
Expected behaviour: this should raise an error or warning saying that extra elements in the
loss
list are not being used. We can see thatignored_loss
is being ignored since noZeroDivisionError
is raised; if we make it the first element in theloss
list then we do get the zero division error.Context: I was trying to do this in the hope that it might somehow weight together the two loss functions (normally in Keras one can easily add extra loss functions like regularization to other parts of the network). For reference, to do that the correct way, see the pattern in this unit test:
nengo-dl/nengo_dl/tests/test_objectives.py
Lines 38 to 76 in 7363bc3
The text was updated successfully, but these errors were encountered: