Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
01562dac
Unverified
Commit
01562dac
authored
Apr 28, 2022
by
amyeroberts
Committed by
GitHub
Apr 28, 2022
Browse files
Rename a class to reflect framework pattern AutoModelXxx -> TFAutoModelXxx (#16993)
parent
1be8d56e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/transformers/models/auto/modeling_tf_auto.py
src/transformers/models/auto/modeling_tf_auto.py
+3
-1
No files found.
src/transformers/models/auto/modeling_tf_auto.py
View file @
01562dac
...
@@ -411,7 +411,9 @@ class TFAutoModelForImageClassification(_BaseAutoModelClass):
...
@@ -411,7 +411,9 @@ class TFAutoModelForImageClassification(_BaseAutoModelClass):
_model_mapping
=
TF_MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING
_model_mapping
=
TF_MODEL_FOR_IMAGE_CLASSIFICATION_MAPPING
AutoModelForImageClassification
=
auto_class_update
(
TFAutoModelForImageClassification
,
head_doc
=
"image classification"
)
TFAutoModelForImageClassification
=
auto_class_update
(
TFAutoModelForImageClassification
,
head_doc
=
"image classification"
)
class
TFAutoModelForVision2Seq
(
_BaseAutoModelClass
):
class
TFAutoModelForVision2Seq
(
_BaseAutoModelClass
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment