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
18044f42
Commit
18044f42
authored
Sep 06, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 472599161
parent
85cc7f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/core/train_utils.py
official/core/train_utils.py
+4
-1
No files found.
official/core/train_utils.py
View file @
18044f42
...
...
@@ -36,6 +36,9 @@ from official.core import exp_factory
from
official.modeling
import
hyperparams
BEST_CHECKPOINT_NAME
=
'best_ckpt'
def
get_leaf_nested_dict
(
d
:
Dict
[
str
,
Any
],
keys
:
List
[
str
])
->
Dict
[
str
,
Any
]:
"""Get leaf from a dictionary with arbitrary depth with a list of keys.
...
...
@@ -138,7 +141,7 @@ class BestCheckpointExporter:
checkpoint
,
directory
=
self
.
_export_dir
,
max_to_keep
=
1
,
checkpoint_name
=
'best_ckpt'
)
checkpoint_name
=
BEST_CHECKPOINT_NAME
)
return
self
.
_checkpoint_manager
...
...
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