Source code for transformers.utils.dummy_flax_objects

# This file is autogenerated by the command `make fix-copies`, do not edit.
from ..file_utils import requires_backends


[docs]class FlaxPreTrainedModel: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
FLAX_MODEL_FOR_MASKED_LM_MAPPING = None FLAX_MODEL_FOR_MULTIPLE_CHOICE_MAPPING = None FLAX_MODEL_FOR_NEXT_SENTENCE_PREDICTION_MAPPING = None FLAX_MODEL_FOR_PRETRAINING_MAPPING = None FLAX_MODEL_FOR_QUESTION_ANSWERING_MAPPING = None FLAX_MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING = None FLAX_MODEL_FOR_TOKEN_CLASSIFICATION_MAPPING = None FLAX_MODEL_MAPPING = None
[docs]class FlaxAutoModel: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxAutoModelForMaskedLM: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxAutoModelForMultipleChoice: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxAutoModelForNextSentencePrediction: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxAutoModelForPreTraining: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxAutoModelForQuestionAnswering: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxAutoModelForSequenceClassification: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxAutoModelForTokenClassification: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertForMaskedLM: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertForMultipleChoice: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertForNextSentencePrediction: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertForPreTraining: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertForQuestionAnswering: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertForSequenceClassification: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertForTokenClassification: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxBertModel: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
class FlaxBertPreTrainedModel: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])
[docs]class FlaxRobertaModel: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(self, *args, **kwargs): requires_backends(self, ["flax"])