Hi, I’m a new learner and I have a same question, the error is: only batches of spatial targets supported (3D tensors) but got targets of dimension: 1. My target size is [128], my predict data size is [128, 256, 6, 1000]. I noticed your solution which is provide a spatial target as  [N, H, W] . But I don’t know how to do it . I’ve google it for many times but I still didn’t find a way to do it. Can you give me some examples about how to provide a spatial target as  [N, H, W] . Thanks a lot.