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
4e6edc32
"git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "b65830e0c77947a859e5b72b3da9051af3a99b3d"
Commit
4e6edc32
authored
Jun 18, 2019
by
thomwolf
Browse files
hop
parent
f55b60b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/run_classifier.py
examples/run_classifier.py
+2
-2
No files found.
examples/run_classifier.py
View file @
4e6edc32
...
...
@@ -443,7 +443,7 @@ def main():
nb_eval_steps
+=
1
if
len
(
preds
)
==
0
:
preds
.
append
(
logits
.
detach
().
cpu
().
numpy
())
out_label_ids
=
label_ids
.
detach
().
cpu
().
numpy
()
)
out_label_ids
=
label_ids
.
detach
().
cpu
().
numpy
()
else
:
preds
[
0
]
=
np
.
append
(
preds
[
0
],
logits
.
detach
().
cpu
().
numpy
(),
axis
=
0
)
...
...
@@ -523,7 +523,7 @@ def main():
nb_eval_steps
+=
1
if
len
(
preds
)
==
0
:
preds
.
append
(
logits
.
detach
().
cpu
().
numpy
())
out_label_ids
=
label_ids
.
detach
().
cpu
().
numpy
()
)
out_label_ids
=
label_ids
.
detach
().
cpu
().
numpy
()
else
:
preds
[
0
]
=
np
.
append
(
preds
[
0
],
logits
.
detach
().
cpu
().
numpy
(),
axis
=
0
)
...
...
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