Skip to content

Commit

Permalink
Fix next sentence output (#8466)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplu authored Nov 11, 2020
1 parent da842e4 commit 069b638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_tf_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class TFNextSentencePredictorOutput(ModelOutput):
heads.
"""

loss: tf.Tensor = None
loss: Optional[tf.Tensor] = None
logits: tf.Tensor = None
hidden_states: Optional[Tuple[tf.Tensor]] = None
attentions: Optional[Tuple[tf.Tensor]] = None
Expand Down

0 comments on commit 069b638

Please sign in to comment.