Infinite loss value when training under amp
Author: jameslahmCreated Nov 3, 2022Updated Apr 2, 2023
Hi, I encounter the infinite loss value assertion failure when training using mixed precision. The trackback like this:
Traceback (most recent call last):
File "main.py", line 498, in <module>
main(args)
File "main.py", line 409, in main
train_stats = train_one_epoch(
File "ConvNeXt/engine.py", line 63, in train_one_epoch
assert math.isfinite(loss_value)
AssertionErrorI wonder how I could fix this problem. Thanks very much!
Source: facebookresearch/ConvNeXt