Just tested it, I can’t apply it on my labels because of the shape:
only batches of spatial targets supported (3D tensors) but got targets of dimension: 4
It is what I want, I just need to figure out how to implement it on the first dimension.