The following code masks fine
mask = targets >= 0
targets = targets[mask]
However, when I try masking with two conditions, it gives an error of RuntimeError: Boolean value of Tensor with more than one value is ambiguous
mask = (targets >= 0 and targets <= 5)
targets = targets[mask]
is there a way to do this?
