Why we want to use `gen_upper_triangle` like https://github.com/microsoft/SDNet/blob/adef46911c4ef4161938e0dcc8a2b435cd680582/Utils/CoQAUtils.py#L80 instead of just calculating start_loss and end_loss separately like ```python start_loss = loss_fct(start_logits, start_positions) end_loss = loss_fct(end_logits, end_positions) ``` https://github.com/huggingface/pytorch-transformers/blob/44dd941efb602433b7edc29612cbdd0a03bf14dc/pytorch_transformers/modeling_bert.py#L1250
Why we want to use
gen_upper_trianglelikeSDNet/Utils/CoQAUtils.py
Line 80 in adef469
instead of just calculating start_loss and end_loss separately like
https://github.com/huggingface/pytorch-transformers/blob/44dd941efb602433b7edc29612cbdd0a03bf14dc/pytorch_transformers/modeling_bert.py#L1250