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
c40ecfd7
Unverified
Commit
c40ecfd7
authored
Dec 15, 2021
by
Sylvain Gugger
Committed by
GitHub
Dec 15, 2021
Browse files
Move import (#14787)
parent
7c9c41f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/transformers/modeling_tf_utils.py
src/transformers/modeling_tf_utils.py
+3
-1
No files found.
src/transformers/modeling_tf_utils.py
View file @
c40ecfd7
...
...
@@ -47,7 +47,6 @@ from .file_utils import (
is_remote_url
,
)
from
.generation_tf_utils
import
TFGenerationMixin
from
.modelcard
import
TrainingSummary
from
.modeling_tf_outputs
import
TFSeq2SeqLMOutput
from
.tokenization_utils_base
import
BatchEncoding
from
.utils
import
logging
...
...
@@ -940,6 +939,9 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin, TFGenerationMixin, Pu
dataset
:
Optional
[
Union
[
str
,
List
[
str
]]]
=
None
,
dataset_args
:
Optional
[
Union
[
str
,
List
[
str
]]]
=
None
,
):
# Avoids a circular import by doing this when necessary.
from
.modelcard
import
TrainingSummary
training_summary
=
TrainingSummary
.
from_keras
(
self
,
keras_history
=
self
.
history
,
...
...
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