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
4c5bd921
Unverified
Commit
4c5bd921
authored
May 02, 2020
by
William Falcon
Committed by
GitHub
May 02, 2020
Browse files
Update run_pl_glue.py (#4117)
parent
5282b31d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/glue/run_pl_glue.py
examples/glue/run_pl_glue.py
+1
-1
No files found.
examples/glue/run_pl_glue.py
View file @
4c5bd921
...
@@ -124,7 +124,7 @@ class GLUETransformer(BaseTransformer):
...
@@ -124,7 +124,7 @@ class GLUETransformer(BaseTransformer):
ret
[
"log"
]
=
results
ret
[
"log"
]
=
results
return
ret
,
preds_list
,
out_label_list
return
ret
,
preds_list
,
out_label_list
def
validation_end
(
self
,
outputs
:
list
)
->
dict
:
def
validation_
epoch_
end
(
self
,
outputs
:
list
)
->
dict
:
ret
,
preds
,
targets
=
self
.
_eval_end
(
outputs
)
ret
,
preds
,
targets
=
self
.
_eval_end
(
outputs
)
logs
=
ret
[
"log"
]
logs
=
ret
[
"log"
]
return
{
"val_loss"
:
logs
[
"val_loss"
],
"log"
:
logs
,
"progress_bar"
:
logs
}
return
{
"val_loss"
:
logs
[
"val_loss"
],
"log"
:
logs
,
"progress_bar"
:
logs
}
...
...
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