Skip to content
fn

check_anomaly_grads

void check_anomaly_grads(const Node & node, const int & grads)

When is_anomaly_enabled is true, inspect every storage in grads and raise a LucidError naming node and the offending output index on the first NaN encountered.