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
f88c104d
Commit
f88c104d
authored
Nov 05, 2019
by
Julien Chaumond
Browse files
[run_tf_glue] Add comment for context
parent
30968d70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
examples/run_tf_glue.py
examples/run_tf_glue.py
+2
-0
No files found.
examples/run_tf_glue.py
View file @
f88c104d
...
...
@@ -73,6 +73,8 @@ model.save_pretrained('./save/')
if
TASK
==
"mrpc"
:
# Load the TensorFlow model in PyTorch for inspection
# This is to demo the interoperability between the two frameworks, you don't have to
# do this in real life (you can run the inference on the TF model).
pytorch_model
=
BertForSequenceClassification
.
from_pretrained
(
'./save/'
,
from_tf
=
True
)
# Quickly test a few predictions - MRPC is a paraphrasing task, let's see if our model learned the task
...
...
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