mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
style
This commit is contained in:
parent
c95dc4ebe7
commit
c341f8c6fb
1 changed files with 1 additions and 1 deletions
|
|
@ -2360,7 +2360,7 @@ class ModelTesterMixin:
|
|||
else:
|
||||
expected_missing = set()
|
||||
for pattern in model_reloaded._keys_to_ignore_on_load_missing:
|
||||
expected_missing.update({k for k in model_reloaded.state_dict().keys() if re.search(pattern, k) is not None})
|
||||
expected_missing.update({k for k in param_names if re.search(pattern, k) is not None})
|
||||
self.assertEqual(
|
||||
missed_missing,
|
||||
expected_missing,
|
||||
|
|
|
|||
Loading…
Reference in a new issue