I hoped so but it’s not possible for two reasons :

ignore_index value is negative and scatter won’t allow a negative index. Remapping to a new label would mean having to reshape the output tensor too.
when doing numerator = output * target the ignore_index labels and outputs are taken into account.