TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

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