tf.estimator.EstimatorSpec

View source on GitHub

Ops and objects returned from a model_fn and passed to an Estimator.

tf.estimator.EstimatorSpec(
    mode, predictions=None, loss=None, train_op=None, eval_metric_ops=None,
    export_outputs=None, training_chief_hooks=None, training_hooks=None,
    scaffold=None, evaluation_hooks=None, prediction_hooks=None
)

EstimatorSpec fully defines the model to be run by an Estimator.

Args:

Attributes:

Raises: