I am trying to get a specific range of values from my pytorch tensor.
tensor=torch.tensor([0,1,2,3,4,5,6,7,8,9]) new_tensor=tensor[tensor>2] print(new_tens