haha
This commit is contained in:
parent
619369236b
commit
d319d33368
|
@ -568,7 +568,7 @@ class Engines(dict[str, Engine]):
|
||||||
name.split("-")[0]: dict(
|
name.split("-")[0]: dict(
|
||||||
**engine_stats,
|
**engine_stats,
|
||||||
lr=engine.get_lr()[0],
|
lr=engine.get_lr()[0],
|
||||||
grad_norm=grad_norm,
|
grad_norm=grad_norm.item() if isinstance( grad_norm, torch.Tensor ) else grad_norm,
|
||||||
loss_scale=loss_scale if loss_scale != 1 else None,
|
loss_scale=loss_scale if loss_scale != 1 else None,
|
||||||
elapsed_time=elapsed_time,
|
elapsed_time=elapsed_time,
|
||||||
engine_step=engine.global_step,
|
engine_step=engine.global_step,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user