Skip to content

Commit

Permalink
Update modelling_single.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anicolson authored Aug 22, 2024
1 parent 6969c23 commit 9aea762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/transformers/single_model/modelling_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def forward(
pixel_values: Optional[torch.Tensor] = None,
output_hidden_states: Optional[bool] = None,
return_dict: Optional[bool] = None,
output_attentions: Optional[bool] = None,
) -> Union[Tuple, ModelOutput]:

return_dict = return_dict if return_dict is not None else self.config.use_return_dict
Expand Down Expand Up @@ -405,4 +406,4 @@ def split_and_decode_sections(self, token_ids, special_token_ids, tokenizer: Pre

sections[j].append(section_string)

return tuple(sections.values())
return tuple(sections.values())

0 comments on commit 9aea762

Please sign in to comment.