The model should output the raw logits in the shape [batch_size, 1] and the target should have the same shape for a binary classification.
The suggested form of [batch_size] would most likely also work, but I would recommend to create the class dimension explicitly (just my two cents  ).