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
ModelZoo
ResNet50_tensorflow
Commits
83f355bb
Unverified
Commit
83f355bb
authored
Aug 07, 2020
by
Kevin
Committed by
GitHub
Aug 07, 2020
Browse files
Consider regression model in predict mode
parent
0ba5a72b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/bert/run_classifier.py
official/nlp/bert/run_classifier.py
+1
-1
No files found.
official/nlp/bert/run_classifier.py
View file @
83f355bb
...
...
@@ -448,7 +448,7 @@ def custom_main(custom_callbacks=None, custom_metrics=None):
if
FLAGS
.
mode
==
'predict'
:
with
strategy
.
scope
():
classifier_model
=
bert_models
.
classifier_model
(
bert_config
,
input_meta_data
[
'num_labels'
]
)[
0
]
bert_config
,
input_meta_data
.
get
(
'num_labels'
,
1
)
)[
0
]
checkpoint
=
tf
.
train
.
Checkpoint
(
model
=
classifier_model
)
latest_checkpoint_file
=
(
FLAGS
.
predict_checkpoint_path
or
...
...
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