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
3bbe68f8
Unverified
Commit
3bbe68f8
authored
Aug 25, 2021
by
Lysandre Debut
Committed by
GitHub
Aug 25, 2021
Browse files
Hubert test fix (#13261)
parent
3bb44662
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_hubert.py
tests/test_modeling_hubert.py
+1
-1
No files found.
tests/test_modeling_hubert.py
View file @
3bbe68f8
...
@@ -563,7 +563,7 @@ class HubertModelIntegrationTest(unittest.TestCase):
...
@@ -563,7 +563,7 @@ class HubertModelIntegrationTest(unittest.TestCase):
input_speech
=
self
.
_load_datasamples
(
2
)
input_speech
=
self
.
_load_datasamples
(
2
)
inputs
=
processor
(
input_speech
,
return_tensors
=
"pt"
,
padding
=
True
,
truncation
=
True
)
inputs
=
processor
(
input_speech
,
return_tensors
=
"pt"
,
padding
=
True
)
input_values
=
inputs
.
input_values
.
to
(
torch_device
)
input_values
=
inputs
.
input_values
.
to
(
torch_device
)
attention_mask
=
inputs
.
attention_mask
.
to
(
torch_device
)
attention_mask
=
inputs
.
attention_mask
.
to
(
torch_device
)
...
...
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