Hi,
Yes. This is an empty tensor. Could you please tell me which tensor is this?  I think that you are printing idxs_mask. In some iterations of the loop
for data,target in val_loader:

You may not get any misclassified images. For your list, you have to append the tensors which are non -empty.
Thanks