mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Whilelist Transformers private method in DummyObject (#20681)
This commit is contained in:
parent
9cc65f8701
commit
69038ce009
@ -1013,7 +1013,7 @@ class DummyObject(type):
|
||||
"""
|
||||
|
||||
def __getattribute__(cls, key):
|
||||
if key.startswith("_"):
|
||||
if key.startswith("_") and key != "_from_config":
|
||||
return super().__getattribute__(key)
|
||||
requires_backends(cls, cls._backends)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user