We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2034e4d commit 7e3fe6cCopy full SHA for 7e3fe6c
QEfficient/finetune/utils/train_utils.py
@@ -232,7 +232,7 @@ def train(
232
if train_config.save_metrics:
233
train_step_loss.append(loss.detach().float().item())
234
if train_config.task_type == "seq_classification":
235
- step_metric_val = acc_helper.compute()
+ step_metric_val = float(acc_helper.compute())
236
else:
237
step_metric_val = float(torch.exp(loss.detach().float()))
238
train_step_metric.append(step_metric_val)
0 commit comments