We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960d8cb commit d6698ecCopy full SHA for d6698ec
src/transformers/modeling_tf_utils.py
@@ -47,7 +47,6 @@
47
is_remote_url,
48
)
49
from .generation_tf_utils import TFGenerationMixin
50
-from .modelcard import TrainingSummary
51
from .modeling_tf_outputs import TFSeq2SeqLMOutput
52
from .tokenization_utils_base import BatchEncoding
53
from .utils import logging
@@ -940,6 +939,9 @@ def create_model_card(
940
939
dataset: Optional[Union[str, List[str]]] = None,
941
dataset_args: Optional[Union[str, List[str]]] = None,
942
):
+ # Avoids a circular import by doing this when necessary.
943
+ from .modelcard import TrainingSummary
944
+
945
training_summary = TrainingSummary.from_keras(
946
self,
947
keras_history=self.history,
0 commit comments