Skip to content

Commit

Permalink
Fix next sentence output (huggingface#8466)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplu authored and fabiocapsouza committed Nov 15, 2020
1 parent 18bb1c7 commit 3252521
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 3252521

Please sign in to comment.