bug fix for loss error message

This commit is contained in:
Junhao Liang
2022-12-27 21:38:56 +08:00
committed by GitHub
parent 0915e989ca
commit bf8d03658e
+1 -1
View File
@@ -65,7 +65,7 @@ class LossAggregator():
else: else:
if isinstance(v, dict): if isinstance(v, dict):
raise ValueError( raise ValueError(
"The key %s in -Trainng-Feat- should be stated as the log_prefix of a certain loss defined in your loss_cfg."%v "The key %s in -Trainng-Feat- should be stated in your loss_cfg as log_prefix."%k
) )
elif is_tensor(v): elif is_tensor(v):
_ = v.mean() _ = v.mean()