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
adab7f83
"tests/git@developer.sourcefind.cn:xdb4_94051/vllm.git" did not exist on "29a8d6a554a87292f05b62078976b43a899691e3"
Unverified
Commit
adab7f83
authored
May 25, 2020
by
Sho Arora
Committed by
GitHub
May 25, 2020
Browse files
Add nn.Module as superclass (#4533)
parent
8f7c1c76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_mmbt.py
src/transformers/modeling_mmbt.py
+1
-1
No files found.
src/transformers/modeling_mmbt.py
View file @
adab7f83
...
...
@@ -149,7 +149,7 @@ MMBT_INPUTS_DOCSTRING = r""" Inputs:
MMBT_START_DOCSTRING
,
MMBT_INPUTS_DOCSTRING
,
)
class
MMBTModel
(
ModuleUtilsMixin
):
class
MMBTModel
(
nn
.
Module
,
ModuleUtilsMixin
):
r
"""
Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs:
**last_hidden_state**: ``torch.FloatTensor`` of shape ``(batch_size, sequence_length, hidden_size)``
...
...
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