Thank you for correcting me. But is there any way I could solve the error
RuntimeError: only batches of spatial targets supported (3D tensors) but got targets of dimension: 4

this is the error I got before using the code argmax