"INSTALL/git@developer.sourcefind.cn:dadigang/Ventoy.git" did not exist on "fa7e1d5fa0007e5d1d634cc4e41fdfd3aa381a8e"
Commit b5625f13 authored by Lysandre's avatar Lysandre Committed by Lysandre Debut
Browse files

Style

parent 44a5b4bb
...@@ -33,7 +33,7 @@ logger = logging.getLogger(__name__) ...@@ -33,7 +33,7 @@ logger = logging.getLogger(__name__)
TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP = {} TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP = {}
XLM_ROBERTA_START_DOCSTRING = r""" XLM_ROBERTA_START_DOCSTRING = r"""
.. note:: .. note::
...@@ -60,6 +60,7 @@ XLM_ROBERTA_START_DOCSTRING = r""" ...@@ -60,6 +60,7 @@ XLM_ROBERTA_START_DOCSTRING = r"""
Check out the :meth:`~transformers.PreTrainedModel.from_pretrained` method to load the model weights. Check out the :meth:`~transformers.PreTrainedModel.from_pretrained` method to load the model weights.
""" """
@add_start_docstrings( @add_start_docstrings(
"The bare XLM-RoBERTa Model transformer outputting raw hidden-states without any specific head on top.", "The bare XLM-RoBERTa Model transformer outputting raw hidden-states without any specific head on top.",
XLM_ROBERTA_START_DOCSTRING, XLM_ROBERTA_START_DOCSTRING,
...@@ -69,19 +70,20 @@ class TFXLMRobertaModel(TFRobertaModel): ...@@ -69,19 +70,20 @@ class TFXLMRobertaModel(TFRobertaModel):
This class overrides :class:`~transformers.TFRobertaModel`. Please check the This class overrides :class:`~transformers.TFRobertaModel`. Please check the
superclass for the appropriate documentation alongside usage examples. superclass for the appropriate documentation alongside usage examples.
""" """
config_class = XLMRobertaConfig config_class = XLMRobertaConfig
pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP
@add_start_docstrings( @add_start_docstrings(
"""XLM-RoBERTa Model with a `language modeling` head on top. """, """XLM-RoBERTa Model with a `language modeling` head on top. """, XLM_ROBERTA_START_DOCSTRING,
XLM_ROBERTA_START_DOCSTRING,
) )
class TFXLMRobertaForMaskedLM(TFRobertaForMaskedLM): class TFXLMRobertaForMaskedLM(TFRobertaForMaskedLM):
""" """
This class overrides :class:`~transformers.TFRobertaForMaskedLM`. Please check the This class overrides :class:`~transformers.TFRobertaForMaskedLM`. Please check the
superclass for the appropriate documentation alongside usage examples. superclass for the appropriate documentation alongside usage examples.
""" """
config_class = XLMRobertaConfig config_class = XLMRobertaConfig
pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP
...@@ -96,6 +98,7 @@ class TFXLMRobertaForSequenceClassification(TFRobertaForSequenceClassification): ...@@ -96,6 +98,7 @@ class TFXLMRobertaForSequenceClassification(TFRobertaForSequenceClassification):
This class overrides :class:`~transformers.TFRobertaForSequenceClassification`. Please check the This class overrides :class:`~transformers.TFRobertaForSequenceClassification`. Please check the
superclass for the appropriate documentation alongside usage examples. superclass for the appropriate documentation alongside usage examples.
""" """
config_class = XLMRobertaConfig config_class = XLMRobertaConfig
pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP
...@@ -110,5 +113,6 @@ class TFXLMRobertaForTokenClassification(TFRobertaForTokenClassification): ...@@ -110,5 +113,6 @@ class TFXLMRobertaForTokenClassification(TFRobertaForTokenClassification):
This class overrides :class:`~transformers.TFRobertaForTokenClassification`. Please check the This class overrides :class:`~transformers.TFRobertaForTokenClassification`. Please check the
superclass for the appropriate documentation alongside usage examples. superclass for the appropriate documentation alongside usage examples.
""" """
config_class = XLMRobertaConfig config_class = XLMRobertaConfig
pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP pretrained_model_archive_map = TF_XLM_ROBERTA_PRETRAINED_MODEL_ARCHIVE_MAP
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment