Skip to content

Commit e4be092

Browse files
amyerobertselusenji
authored andcommitted
Rename a class to reflect framework pattern AutoModelXxx -> TFAutoModelXxx (huggingface#16993)
1 parent ef83fa8 commit e4be092

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/transformers/models/auto/modeling_tf_auto.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,9 @@ class TFAutoModelForImageClassification(_BaseAutoModelClass):
411411
_model_mapping = TF_MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING
412412

413413

414-
AutoModelForImageClassification = auto_class_update(TFAutoModelForImageClassification, head_doc="image classification")
414+
TFAutoModelForImageClassification = auto_class_update(
415+
TFAutoModelForImageClassification, head_doc="image classification"
416+
)
415417

416418

417419
class TFAutoModelForVision2Seq(_BaseAutoModelClass):

0 commit comments

Comments
 (0)