You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option to disable Trainer.detect_nan_tensors
Motivation
This function tends to be pretty slow when your network has got a lot of parameters, especially in small tensors. For example in my case it took ~0.5s per training iteration.
Pitch
Add an option to the Trainer class that disables calling detect_nan_tensors every epoch.
Alternatives
Remove it all together. Bad idea.
Additional context
The text was updated successfully, but these errors were encountered:
This proposal sounds good :) would maybe go as far as to say that it should be disabled by default, certainly if this speeds up testing :). We should also add detect_nan_tensors to the profiler so that users can see how long it is taking
🚀 Feature
Add an option to disable
Trainer.detect_nan_tensors
Motivation
This function tends to be pretty slow when your network has got a lot of parameters, especially in small tensors. For example in my case it took ~0.5s per training iteration.
Pitch
Add an option to the
Trainer
class that disables callingdetect_nan_tensors
every epoch.Alternatives
Remove it all together. Bad idea.
Additional context
The text was updated successfully, but these errors were encountered: