Open PaulLerner opened 1 year ago
Hi,
I have trouble understanding this line in compute_loss in reader.py: https://github.com/facebookresearch/DPR/blob/a31212dc0a54dfa85d8bfa01e1669f149ac832b7/dpr/models/reader.py#L109
compute_loss
reader.py
This keeps the maximum loss over all M passages, why? Why not summing or averaging?
M
Best regards,
Hi,
I have trouble understanding this line in
compute_loss
inreader.py
: https://github.com/facebookresearch/DPR/blob/a31212dc0a54dfa85d8bfa01e1669f149ac832b7/dpr/models/reader.py#L109This keeps the maximum loss over all
M
passages, why? Why not summing or averaging?Best regards,