Add AutoModelForPreTraining

This commit is contained in:
thomwolf
2020-01-24 17:49:02 -05:00
committed by Lysandre Debut
parent ea56d305be
commit 0e31e06a75
5 changed files with 373 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ if is_torch_available():
from .modeling_utils import PreTrainedModel, prune_layer, Conv1D
from .modeling_auto import (
AutoModel,
AutoModelForPreTraining,
AutoModelForSequenceClassification,
AutoModelForQuestionAnswering,
AutoModelWithLMHead,
@@ -267,6 +268,7 @@ if is_tf_available():
from .modeling_tf_utils import TFPreTrainedModel, TFSharedEmbeddings, TFSequenceSummary, shape_list
from .modeling_tf_auto import (
TFAutoModel,
TFAutoModelForPreTraining,
TFAutoModelForSequenceClassification,
TFAutoModelForQuestionAnswering,
TFAutoModelWithLMHead,