Pytorch

Tricks

Masked fill

tensor.masked_fille(mask=(tensor with true and false), value = (value to fill the trues with))