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
58fc8f97
Commit
58fc8f97
authored
Mar 06, 2020
by
patrickvonplaten
Browse files
fix renaming problem
parent
857e0a0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_bart.py
tests/test_modeling_bart.py
+1
-1
No files found.
tests/test_modeling_bart.py
View file @
58fc8f97
...
@@ -300,7 +300,7 @@ class BartHeadTests(unittest.TestCase):
...
@@ -300,7 +300,7 @@ class BartHeadTests(unittest.TestCase):
def
test_generate_fp16
(
self
):
def
test_generate_fp16
(
self
):
config
,
input_ids
,
batch_size
=
self
.
_get_config_and_data
(
output_past
=
True
)
config
,
input_ids
,
batch_size
=
self
.
_get_config_and_data
(
output_past
=
True
)
attention_mask
=
input_ids
.
ne
(
1
)
attention_mask
=
input_ids
.
ne
(
1
)
lm_model
=
BartFor
MaskedLM
(
config
).
eval
().
to
(
torch_device
).
half
()
lm_model
=
BartFor
ConditionalGeneration
(
config
).
eval
().
to
(
torch_device
).
half
()
lm_model
.
generate
(
input_ids
,
attention_mask
)
lm_model
.
generate
(
input_ids
,
attention_mask
)
...
...
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