|View source on GitHub|
Specifies the way a converted function or method should be executed in TF.
- 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.