NaN Loss Monitor

Monitors loss and stops training if loss is NaN. Can either fail with exception or just stop training.

hook_nan_tensor(loss_tensor, fail_on_nan_loss = TRUE)

Arguments

loss_tensor

The loss tensor.

fail_on_nan_loss

A boolean indicating whether to raise exception when loss is NaN.

See also