File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,6 @@ def parse_configuration(flags_obj):
40
40
41
41
# 1. Get the default config from the registered experiment.
42
42
params = exp_factory .get_exp_config (flags_obj .experiment )
43
- params .override ({
44
- 'runtime' : {
45
- 'tpu' : flags_obj .tpu ,
46
- }
47
- })
48
43
49
44
# 2. Get the first level of override from `--config_file`.
50
45
# `--config_file` is typically used as a template that specifies the common
@@ -53,7 +48,14 @@ def parse_configuration(flags_obj):
53
48
params = hyperparams .override_params_dict (
54
49
params , config_file , is_strict = True )
55
50
56
- # 3. Get the second level of override from `--params_override`.
51
+ # 3. Override the TPU address.
52
+ params .override ({
53
+ 'runtime' : {
54
+ 'tpu' : flags_obj .tpu ,
55
+ }
56
+ })
57
+
58
+ # 4. Get the second level of override from `--params_override`.
57
59
# `--params_override` is typically used as a further override over the
58
60
# template. For example, one may define a particular template for training
59
61
# ResNet50 on ImageNet in a config file and pass it via `--config_file`,
You can’t perform that action at this time.
0 commit comments