"test/srt/vscode:/vscode.git/clone" did not exist on "bb0e8a32b579b57ecc18863620dd5c7366f15af5"
Commit b4d535ac authored by Chen Chen's avatar Chen Chen Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 326604435
parent 9cbe3c2f
...@@ -40,11 +40,6 @@ def parse_configuration(flags_obj): ...@@ -40,11 +40,6 @@ def parse_configuration(flags_obj):
# 1. Get the default config from the registered experiment. # 1. Get the default config from the registered experiment.
params = exp_factory.get_exp_config(flags_obj.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`. # 2. Get the first level of override from `--config_file`.
# `--config_file` is typically used as a template that specifies the common # `--config_file` is typically used as a template that specifies the common
...@@ -53,7 +48,14 @@ def parse_configuration(flags_obj): ...@@ -53,7 +48,14 @@ def parse_configuration(flags_obj):
params = hyperparams.override_params_dict( params = hyperparams.override_params_dict(
params, config_file, is_strict=True) 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 # `--params_override` is typically used as a further override over the
# template. For example, one may define a particular template for training # template. For example, one may define a particular template for training
# ResNet50 on ImageNet in a config file and pass it via `--config_file`, # ResNet50 on ImageNet in a config file and pass it via `--config_file`,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment