Custom BCEWithLogitsLoss for Sequence Classification using Auto Model

Hmm…

BCEWithLogitsLoss is for Binary 0 or 1 use torch.nn.CrossEntropyLoss