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
c3526400
Unverified
Commit
c3526400
authored
May 18, 2022
by
Patrick von Platen
Committed by
GitHub
May 17, 2022
Browse files
fix (#17310)
parent
d9050dc7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/transformers/utils/dummy_pt_objects.py
src/transformers/utils/dummy_pt_objects.py
+7
-0
No files found.
src/transformers/utils/dummy_pt_objects.py
View file @
c3526400
...
...
@@ -3868,6 +3868,13 @@ class Speech2Text2PreTrainedModel(metaclass=DummyObject):
SPLINTER_PRETRAINED_MODEL_ARCHIVE_LIST
=
None
class
SplinterForPreTraining
(
metaclass
=
DummyObject
):
_backends
=
[
"torch"
]
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_backends
(
self
,
[
"torch"
])
class
SplinterForQuestionAnswering
(
metaclass
=
DummyObject
):
_backends
=
[
"torch"
]
...
...
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