I'm fine-tuning the BERT model in Named Entity Recognition task using json file dataset, but when I run that code always get an error:
loss = model(b_input_ids, token_type_ids=None,
attention_mask=b_input_mask, labels=b_labels)
# backward pass
loss.backward()
I think the library has been changed but I don't know where can I find 'backward' attribute