Hello!
I want to check whether each value of a tensor of shape [1, 1, 16, 16] is greater than 2. I tried doing it simply by
if(myTensor > 2)
but it throws the following error:
RuntimeError: Boolean value of Tensor with more than one value is ambiguous
Is there any way to create a tensor of shape [1, 1, 16, 16] with all its values set to 2. Will I then be able to compare each individual value of myTensor with 2?