Missed TensorFlow World? Check out the recap. Learn more

tf.contrib.autograph.RunMode

View source on GitHub

Class RunMode

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