Registration is open for TensorFlow Dev Summit 2020 Learn more


View source on GitHub

Places an executor-backed execution context at the top of the stack.


Used in the tutorials:

NOTE: This function is only available in Python 3.


  • executor: Either an instance of executor_base.Executor, a factory function returning such executors, or None. If executor is a factory function, the constructed context will infer the number of clients from the data it is passed, if possible. If None, causes the default reference executor to be installed (as is the default).