(cls, config: FrozenDict | dict[str, Any] = None, return_unused_kwargs=False, **kwargs)
| 793 | |
| 794 | @classmethod |
| 795 | def from_config(cls, config: FrozenDict | dict[str, Any] = None, return_unused_kwargs=False, **kwargs): |
| 796 | # To prevent dependency import problem. |
| 797 | from .models.model_loading_utils import _fetch_remapped_cls_from_config |
| 798 | |
| 799 | # resolve remapping |
| 800 | remapped_class = _fetch_remapped_cls_from_config(config, cls) |
| 801 | |
| 802 | if remapped_class is cls: |
| 803 | return super(LegacyConfigMixin, remapped_class).from_config(config, return_unused_kwargs, **kwargs) |
| 804 | else: |
| 805 | return remapped_class.from_config(config, return_unused_kwargs, **kwargs) |
nothing calls this directly
no test coverage detected