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 in kwargs does not exist or is not allowed to be replaced, or both save_checkpoints_steps and save_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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部