Either pred or label_A seem to be a scalar, while a tensor with at least one dimension is required.
Based on your code, I guess that label_A might be the scalar tensor, since you are squeezing it.
For a multi-class classification, the output should have the shape [batch_size, nb_classes] and the target [batch_size].
Also, Variables are deprecated, so you should use tensors now.