Missed TensorFlow World? Check out the recap. Learn more

tff.framework.set_default_executor

View source on GitHub

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

tff.framework.set_default_executor(executor=None)

Used in the tutorials:

NOTE: This function is only available in Python 3.

Args:

  • 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).