tf.estimator.RunConfig
tf.estimator.RunConfig
class tf.estimator.RunConfig
Defined in tensorflow/python/estimator/run_config.py
.
This class specifies the configurations for an Estimator
run.
Properties
cluster_spec
evaluation_master
is_chief
keep_checkpoint_every_n_hours
keep_checkpoint_max
master
model_dir
num_ps_replicas
num_worker_replicas
save_checkpoints_secs
save_checkpoints_steps
save_summary_steps
session_config
task_id
task_type
tf_random_seed
Methods
__init__
__init__()
replace
replace(**kwargs)
Returns a new instance of RunConfig
replacing specified properties.
Only the properties in the following list are allowed to be replaced: - model_dir
. - tf_random_seed
, - save_summary_steps
, - save_checkpoints_steps
, - save_checkpoints_secs
, - session_config
, - keep_checkpoint_max
, - keep_checkpoint_every_n_hours
,
In addition, either save_checkpoints_steps
or save_checkpoints_secs
can be set (should not be both).
Args:
**kwargs: keyword named properties with new values.
Raises:
-
ValueError
: If any property name inkwargs
does not exist or is not allowed to be replaced, or bothsave_checkpoints_steps
andsave_checkpoints_secs
are set.
Returns:
a new instance of RunConfig
.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/estimator/RunConfig