NaNMonitor#

class composer.callbacks.NaNMonitor(*args, **kwargs)[source]#

Catches NaNs in the loss and raises an error if one is found.

after_loss(state, logger)[source]#

Check if loss is NaN and raise an error if so.