Skip to content

Commit

Permalink
Minor update of run_call_with_unpacked_inputs (huggingface#18541)
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
  • Loading branch information
3 people authored and oneraghavan committed Sep 26, 2022
1 parent 4fb1020 commit a92b940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/modeling_tf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def run_call_with_unpacked_inputs(self, *args, **kwargs):
fn_args_and_kwargs.update(dict(zip(func.__code__.co_varnames[1:], args)))

# Encoder Decoder models delegate the application of the configuration options to their inner models.
if "encoder_decoder" in str(self).lower():
if "EncoderDecoder" in self.__class__.__name__:
config = None
else:
config = self.config
Expand Down

0 comments on commit a92b940

Please sign in to comment.