Announcing the TensorFlow Dev Summit 2020 Learn more

tf.contrib.learn.ModeKeys

View source on GitHub

Class ModeKeys

Standard names for model modes (deprecated).

THIS CLASS IS DEPRECATED.

The following standard keys are defined:

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

Methods

validate

View source

@classmethod
validate(
    cls,
    key
)

Class Members

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