Yes, @Eta_C . Exactly. But, using your suggestion, I’m still getting an error in the second line (predicton = prediction[…, conf_mask]).
IndexError: The shape of the mask [1, 10647] at index 0 does not match the shape of the indexed tensor [1, 10647, 6] at index 1