tf.contrib.autograph.RunMode

Class RunMode

Defined in tensorflow/python/autograph/impl/api.py.

Specifies the way a converted function or method should be executed in TF.

Attributes:

  • GRAPH: Call this function directly, as-is. This is suitable for functions that were already designed for TF graphs and contain ops.
  • PY_FUNC: Wrap this function into a py_func op. This is suitable for code that will only run correctly in Python, for example code that renders to the display, reads keyboard input, etc.

Class Members

GRAPH

PY_FUNC

__members__