message: Allow setting model_dir using TF_CONFIG in local training.
diff: @@ -159,7 +159,7 @@ def init_run_config(config, tf_config):
  # Don't use distribute coordinator if it is local training or cluster has a
  # MASTER job or `train_distribute` is not specifed.
  - if (not tf_config or 'master' in cluster_spec.jobs or
  + if (not cluster_spec or 'master' in cluster_spec.jobs or
  not config._train_distribute):
  config._distribute_coordinator_mode = None
  config._init_distributed_setting_from_environment_var(tf_config)
  