Skip to content

argument for detect_anomaly on for debug #8313

@ruotianluo

Description

@ruotianluo

🚀 Feature

Add an arg for trainer to turn on detect_anomaly. So that when gradients get nan, the model will automatically detect.

Motivation

For easier debugging.

Metadata

Metadata

Assignees

Labels

featureIs an improvement or enhancementgood first issueGood for newcomershelp wantedOpen to be worked on

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions