torch.masked_fill() - beyondnlp/nlp GitHub Wiki https://pytorch.org/docs/stable/generated/torch.Tensor.masked_fill_.html#torch.Tensor.masked_fill_ https://thought-process-ing.tistory.com/79