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
364920e2
Commit
364920e2
authored
Sep 10, 2019
by
VictorSanh
Browse files
fix small bug/typo
parent
23c23f53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/distillation/dataset.py
examples/distillation/dataset.py
+1
-1
No files found.
examples/distillation/dataset.py
View file @
364920e2
...
...
@@ -77,7 +77,7 @@ class Dataset:
if
sub_s
[
0
]
!=
cls_id
:
sub_s
=
np
.
insert
(
sub_s
,
0
,
cls_id
)
if
sub_s
[
-
1
]
!=
sep_id
:
sub_s
=
np
.
insert
(
sub_s
,
len
(
sub_s
),
cls
_id
)
sub_s
=
np
.
insert
(
sub_s
,
len
(
sub_s
),
sep
_id
)
assert
len
(
sub_s
)
<=
max_len
sub_seqs
.
append
(
sub_s
)
...
...
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