This mask should be a tensor with shape ( batch-size, seq-len) and have ... I'm implementing self-attention part in transformer encoder using pytorch nn.
確定! 回上一頁