Skip to content

Commit

Permalink
Update classifier.py hint
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoesia committed Feb 3, 2023
1 parent 844f6eb commit 04ff898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def __init__(self, config):
def forward(self, input_ids, attention_mask):
'''Takes a batch of sentences and returns logits for sentiment classes'''
# The final BERT contextualized embedding is the hidden state of [CLS] token (the first token).
# Note that you should consider what is the most appropriate output to return given that
# currently use nll_loss instead of cross_entropy for training
# HINT: you should consider what is the appropriate output to return given that
# the training loop currently uses F.cross_entropy as the loss function.
### TODO
raise NotImplementedError

Expand Down

0 comments on commit 04ff898

Please sign in to comment.