PyTorch Forums
Got RuntimeError: Boolean value of Tensor with more than one value is ambiguous during training
vision
ptrblck
October 9, 2021, 12:59am
2
You have to combine the two conditions via
&
:
labels[(0.1<=labels) & (labels<=0.9)]
Assertion `t >= 0 && t < n_classes` failed error
show post in topic