You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
699 B

4 days ago
import warnings
from ..backbone_utils import BackboneConfigMixin, BackboneMixin
class BackboneConfigMixin(BackboneConfigMixin):
warnings.warn(
"Importing `BackboneConfigMixin` from `utils/backbone_utils.py` is deprecated and will be removed in "
"Transformers v5.10. Import as `from transformers.backbone_utils import BackboneConfigMixin` instead.",
FutureWarning,
)
class BackboneMixin(BackboneMixin):
warnings.warn(
"Importing `BackboneMixin` from `utils/backbone_utils.py` is deprecated and will be removed in "
"Transformers v5.10. Import as `from transformers.backbone_utils import BackboneMixin` instead.",
FutureWarning,
)