check type before logging in trainer to ensure values are scalars (#4883)
* check type before logging to ensure it's a scalar * log when Trainer attempts to add a non-scalar value using TensorboardX's writer.add_scalar so we know what kinds of fixes are appropriate * black it * rephrase log message to clarify attribute was dropped Co-authored-by:Julien Chaumond <chaumond@gmail.com> Co-authored-by:
Julien Chaumond <chaumond@gmail.com>
Showing
Please register or sign in to comment