Closed ToneLi closed 1 year ago
same question
Hi, sorry I have not been tracking this repository for quite some time. Although it's been a while, I remember that this outputs[0]
is the result from the training loss function after all the calculations. You can find the calculation of the loss and everything else in utils.py. I hope carefully going through that file should resolve your query.
Thanks, mate! Now it's all making sense.
model.train() batch = tuple(t.to(args.device) for t in batch) inputs = {"input_ids": batch[0], "attention_mask": batch[1], "token_type_ids": batch[2], "labels": batch[3],"loss_type":args.training_loss, "consider_mutual_O": args.consider_mutual_O}