"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "4c01231e67f0d699e0236c11178c956fb9753a17"
Unverified Commit 6bea7b81 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Minor update of `run_call_with_unpacked_inputs` (#18541)


Co-authored-by: default avatarSylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 8cb5ecd9
......@@ -398,7 +398,7 @@ def unpack_inputs(func):
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment