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
f0d20ad3
Commit
f0d20ad3
authored
Oct 06, 2020
by
Lysandre
Browse files
Fix-copies
parent
59824318
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/transformers/utils/dummy_pt_objects.py
src/transformers/utils/dummy_pt_objects.py
+9
-0
No files found.
src/transformers/utils/dummy_pt_objects.py
View file @
f0d20ad3
...
@@ -931,6 +931,15 @@ class GPT2DoubleHeadsModel:
...
@@ -931,6 +931,15 @@ class GPT2DoubleHeadsModel:
requires_pytorch
(
self
)
requires_pytorch
(
self
)
class
GPT2ForSequenceClassification
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
@
classmethod
def
from_pretrained
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
class
GPT2LMHeadModel
:
class
GPT2LMHeadModel
:
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_pytorch
(
self
)
requires_pytorch
(
self
)
...
...
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