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
8dcf494e
Unverified
Commit
8dcf494e
authored
Nov 14, 2022
by
Younes Belkada
Committed by
GitHub
Nov 14, 2022
Browse files
[ROC_BERT] Make CI happy (#20175)
* fix slow test * Update tests/models/roc_bert/test_modeling_roc_bert.py
parent
7b55bb45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/roc_bert/test_modeling_roc_bert.py
tests/models/roc_bert/test_modeling_roc_bert.py
+1
-1
No files found.
tests/models/roc_bert/test_modeling_roc_bert.py
View file @
8dcf494e
...
...
@@ -705,4 +705,4 @@ class RoCBertModelIntegrationTest(unittest.TestCase):
# convert to tokens is: ['[CLS]', '巴', '*', '黎', '是', '法', '国', '的', '首', '都', '[SEP]']
expected_output
=
torch
.
tensor
([[
101
,
2349
,
115
,
7944
,
3221
,
3791
,
1744
,
4638
,
7674
,
6963
,
102
]])
self
.
assert
True
(
output_ids
,
expected_output
)
self
.
assert
Equal
(
output_ids
,
expected_output
)
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