pytorch 掩码(masked)pytorch使用tensor.masked_fill将张量中的一些值掩盖掉。在Transformer中与BERT中都有用到。方法原型:tensor.masked_fill(mask, value)将mask中 ...
確定! 回上一頁