mask 就是[batch size, source sentence length]由0和1组成的序列, 0的部分为pad token, 剩余的为1. 利用pytorch的 mask_fill() , 将所有0的部分替换成 ...
確定! 回上一頁