Ozan Oktay commited on
Commit
fce0b41
1 Parent(s): cf80627
Files changed (1) hide show
  1. modeling_cxrbert.py +2 -2
modeling_cxrbert.py CHANGED
@@ -18,7 +18,7 @@ BERTTupleOutput = Tuple[T, T, T, T, T]
18
 
19
  class CXRBertOutput(ModelOutput):
20
  last_hidden_state: torch.FloatTensor
21
- prediction_logits: torch.FloatTensor
22
  cls_projected_embedding: Optional[torch.FloatTensor] = None
23
  hidden_states: Optional[Tuple[torch.FloatTensor]] = None
24
  attentions: Optional[Tuple[torch.FloatTensor]] = None
@@ -97,7 +97,7 @@ class CXRBertModel(BertForMaskedLM):
97
  if return_dict:
98
  return CXRBertOutput(
99
  last_hidden_state=last_hidden_state,
100
- prediction_logits=bert_for_masked_lm_output.logits,
101
  cls_projected_embedding=cls_projected_embedding,
102
  hidden_states=bert_for_masked_lm_output.hidden_states if output_hidden_states else None,
103
  attentions=bert_for_masked_lm_output.attentions,
 
18
 
19
  class CXRBertOutput(ModelOutput):
20
  last_hidden_state: torch.FloatTensor
21
+ logits: torch.FloatTensor
22
  cls_projected_embedding: Optional[torch.FloatTensor] = None
23
  hidden_states: Optional[Tuple[torch.FloatTensor]] = None
24
  attentions: Optional[Tuple[torch.FloatTensor]] = None
 
97
  if return_dict:
98
  return CXRBertOutput(
99
  last_hidden_state=last_hidden_state,
100
+ logits=bert_for_masked_lm_output.logits,
101
  cls_projected_embedding=cls_projected_embedding,
102
  hidden_states=bert_for_masked_lm_output.hidden_states if output_hidden_states else None,
103
  attentions=bert_for_masked_lm_output.attentions,