tf.estimator.TrainSpec

View source on GitHub

Configuration for the "train" part for the train_and_evaluate call.

tf.estimator.TrainSpec(
    input_fn, max_steps=None, hooks=None
)

TrainSpec determines the input data for the training, as well as the duration. Optional hooks run at various stages of training.

Args:

Attributes:

Raises: