Error: 0D or 1D target tensor expected, multi-target not supported

No, as described in the previous post the data and target have different shapes and you should make sure this is the case in your use case.