Skip to content

Check weights for NaN #576

@PeterMinin

Description

@PeterMinin

If some weights in the network become NaN at some point during training, I'd like the training to stop with an error.
Currently, when training on a GPU, there is no error, training just continues, usually giving poor results. An error occurs later, when the model is executed on the CPU, where a "Floating-point invalid operation" is thrown at some point.
Perhaps such a check could be an optional (on by default) step after each parameter update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions