The target tensor seems to have an additional dimension and its shape looks like [batch_size, 1]. Remove dim1 for a multi-class classification via label = label.squeeze(1) and it should most likely work.
PS: you can post code snippets by wrapping them into three backticks ```, which would make debugging easier