Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
3bd3d8b5
Commit
3bd3d8b5
authored
Oct 05, 2020
by
Sylvain Gugger
Browse files
Add new dummy PT objects
parent
28d183c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
71 additions
and
0 deletions
+71
-0
src/transformers/utils/dummy_pt_objects.py
src/transformers/utils/dummy_pt_objects.py
+71
-0
No files found.
src/transformers/utils/dummy_pt_objects.py
View file @
3bd3d8b5
...
@@ -1435,6 +1435,77 @@ class RobertaModel:
...
@@ -1435,6 +1435,77 @@ class RobertaModel:
requires_pytorch
(
self
)
requires_pytorch
(
self
)
SQUEEZEBERT_PRETRAINED_MODEL_ARCHIVE_LIST
=
None
class
SqueezeBertForMaskedLM
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
SqueezeBertForMultipleChoice
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
SqueezeBertForQuestionAnswering
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
SqueezeBertForSequenceClassification
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
SqueezeBertForTokenClassification
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
SqueezeBertModel
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
SqueezeBertModule
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
SqueezeBertPreTrainedModel
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
T5_PRETRAINED_MODEL_ARCHIVE_LIST
=
None
T5_PRETRAINED_MODEL_ARCHIVE_LIST
=
None
...
...
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