Search and Replace NaN in Model parameters #6817
a-parida12
started this conversation in
Ideas
Replies: 1 comment
-
Hi @a-parida12, thank you for your proposal and interest here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is so many time that a model's learnable parameter may become NaN even though gradient clipping or lower
lr
may be implemented by the user. It maybe useful to add a couple of functions that can check if a model parameter becomes a NaN to replace it with a number. This may help address issues when some random stochastic parameter causes this trouble.Ideally all the models should have the 2 functions- one to search for NaN and other to replace the NaN. Here is some example implementation.
Beta Was this translation helpful? Give feedback.
All reactions