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
ccc134f5
Commit
ccc134f5
authored
Aug 05, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Aug 05, 2021
Browse files
Add checkpoint items loading to the evaluator to be consistent with trainer.
PiperOrigin-RevId: 389101303
parent
6a8107f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
official/modeling/multitask/evaluator.py
official/modeling/multitask/evaluator.py
+8
-1
No files found.
official/modeling/multitask/evaluator.py
View file @
ccc134f5
...
@@ -54,8 +54,15 @@ class MultiTaskEvaluator(orbit.AbstractEvaluator):
...
@@ -54,8 +54,15 @@ class MultiTaskEvaluator(orbit.AbstractEvaluator):
self
.
_model
=
model
self
.
_model
=
model
self
.
_global_step
=
global_step
or
orbit
.
utils
.
create_global_step
()
self
.
_global_step
=
global_step
or
orbit
.
utils
.
create_global_step
()
self
.
_checkpoint_exporter
=
checkpoint_exporter
self
.
_checkpoint_exporter
=
checkpoint_exporter
if
hasattr
(
self
.
model
,
"checkpoint_items"
):
checkpoint_items
=
self
.
model
.
checkpoint_items
else
:
checkpoint_items
=
{}
self
.
_checkpoint
=
tf
.
train
.
Checkpoint
(
self
.
_checkpoint
=
tf
.
train
.
Checkpoint
(
global_step
=
self
.
global_step
,
model
=
self
.
model
)
model
=
self
.
model
,
global_step
=
self
.
global_step
,
**
checkpoint_items
)
self
.
_validation_losses
=
None
self
.
_validation_losses
=
None
self
.
_validation_metrics
=
None
self
.
_validation_metrics
=
None
...
...
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