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
e387ed65
Commit
e387ed65
authored
Nov 02, 2021
by
Yuexin Wu
Committed by
A. Unique TensorFlower
Nov 02, 2021
Browse files
Internal change
PiperOrigin-RevId: 407125012
parent
d7940205
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/core/train_utils.py
official/core/train_utils.py
+2
-2
No files found.
official/core/train_utils.py
View file @
e387ed65
...
@@ -311,10 +311,10 @@ def serialize_config(params: config_definitions.ExperimentConfig,
...
@@ -311,10 +311,10 @@ def serialize_config(params: config_definitions.ExperimentConfig,
hyperparams
.
save_params_dict_to_yaml
(
params
,
params_save_path
)
hyperparams
.
save_params_dict_to_yaml
(
params
,
params_save_path
)
def
save_gin_config
(
filename_su
r
fix
:
str
,
model_dir
:
str
):
def
save_gin_config
(
filename_su
f
fix
:
str
,
model_dir
:
str
):
"""Serializes and saves the experiment config."""
"""Serializes and saves the experiment config."""
gin_save_path
=
os
.
path
.
join
(
gin_save_path
=
os
.
path
.
join
(
model_dir
,
'operative_config.{}.gin'
.
format
(
filename_su
r
fix
))
model_dir
,
'operative_config.{}.gin'
.
format
(
filename_su
f
fix
))
logging
.
info
(
'Saving gin configurations to %s'
,
gin_save_path
)
logging
.
info
(
'Saving gin configurations to %s'
,
gin_save_path
)
tf
.
io
.
gfile
.
makedirs
(
model_dir
)
tf
.
io
.
gfile
.
makedirs
(
model_dir
)
with
tf
.
io
.
gfile
.
GFile
(
gin_save_path
,
'w'
)
as
f
:
with
tf
.
io
.
gfile
.
GFile
(
gin_save_path
,
'w'
)
as
f
:
...
...
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