pytorch_forecasting.utils.
create_mask
Create boolean masks of shape len(lenghts) x size.
An entry at (i, j) is True if lengths[i] > j.
size (int) – size of second dimension
lengths (torch.LongTensor) – tensor of lengths
inverse (bool, optional) – If true, boolean mask is inverted. Defaults to False.
mask
torch.BoolTensor