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
2bef12e6
Commit
2bef12e6
authored
Aug 14, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Aug 14, 2020
Browse files
Internal change
PiperOrigin-RevId: 326604435
parent
432a448a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
official/core/train_utils.py
official/core/train_utils.py
+8
-6
No files found.
official/core/train_utils.py
View file @
2bef12e6
...
...
@@ -40,11 +40,6 @@ def parse_configuration(flags_obj):
# 1. Get the default config from the registered experiment.
params
=
exp_factory
.
get_exp_config
(
flags_obj
.
experiment
)
params
.
override
({
'runtime'
:
{
'tpu'
:
flags_obj
.
tpu
,
}
})
# 2. Get the first level of override from `--config_file`.
# `--config_file` is typically used as a template that specifies the common
...
...
@@ -53,7 +48,14 @@ def parse_configuration(flags_obj):
params
=
hyperparams
.
override_params_dict
(
params
,
config_file
,
is_strict
=
True
)
# 3. Get the second level of override from `--params_override`.
# 3. Override the TPU address.
params
.
override
({
'runtime'
:
{
'tpu'
:
flags_obj
.
tpu
,
}
})
# 4. Get the second level of override from `--params_override`.
# `--params_override` is typically used as a further override over the
# template. For example, one may define a particular template for training
# ResNet50 on ImageNet in a config file and pass it via `--config_file`,
...
...
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