mirror of https://github.com/InternLM/InternLM
fix(metric): argument missing in getting loss metrics. (#256)
parent
ba4deaeffa
commit
c92aa06bd8
|
@ -176,7 +176,7 @@ class AccPerplex:
|
|||
res.update(ds_acc)
|
||||
res.update(ds_tokens)
|
||||
|
||||
loss_res = self.loss_with_type_id.get_metric()
|
||||
loss_res = self.loss_with_type_id.get_metric(reset)
|
||||
res.update(loss_res)
|
||||
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue