View source on GitHub |
Get a context: an object with the same API as multiprocessing module.
tf_agents.system.multiprocessing.get_context(
method: Text = None
) -> _multiprocessing.context.BaseContext
Args | |
---|---|
method
|
(Optional.) The method name; a Google-safe default is provided. |
Returns | |
---|---|
A multiprocessing context. |
Raises | |
---|---|
RuntimeError
|
If main() was not executed via handle_main(). |