TensorFlow 2.0 Beta is available Learn more

tf.contrib.learn.ModeKeys

Class ModeKeys

Standard names for model modes (deprecated).

Defined in contrib/learn/python/learn/estimators/model_fn.py.

THIS CLASS IS DEPRECATED.

The following standard keys are defined:

  • TRAIN: training mode.
  • EVAL: evaluation mode.
  • INFER: inference mode.

Methods

validate

@classmethod
validate(
    cls,
    key
)

Class Members

  • EVAL = 'eval'
  • INFER = 'infer'
  • TRAIN = 'train'