In general multiprocessing.Pool can interact quite badly with other, seemingly
unrelated, parts of a codebase due to Pool's reliance on fork. This method
cleans up all pools which are known to belong to Keras (and thus can be safely
terminated).
Args
grace_period
Time (in seconds) to wait for process cleanup to propagate.
use_sigkill
Boolean of whether or not to perform a cleanup pass using
SIGKILL.
Returns
A list of human readable strings describing all issues encountered. It is up
to the caller to decide whether to treat this as an error condition.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.keras.experimental.terminate_keras_multiprocessing_pools\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/keras/experimental/terminate_keras_multiprocessing_pools) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/keras/utils/data_utils.py#L556-L662) |\n\nDestroy Keras' multiprocessing pools to prevent deadlocks. (deprecated)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.keras.experimental.terminate_keras_multiprocessing_pools`](/api_docs/python/tf/keras/experimental/terminate_keras_multiprocessing_pools)\n\n\u003cbr /\u003e\n\n tf.keras.experimental.terminate_keras_multiprocessing_pools(\n grace_period=0.1, use_sigkill=False\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed after 2020-06-07. Instructions for updating: Please manage pools using the standard Python lib.\n\nIn general multiprocessing.Pool can interact quite badly with other, seemingly\nunrelated, parts of a codebase due to Pool's reliance on fork. This method\ncleans up all pools which are known to belong to Keras (and thus can be safely\nterminated).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|----------------|--------------------------------------------------------------------|\n| `grace_period` | Time (in seconds) to wait for process cleanup to propagate. |\n| `use_sigkill` | Boolean of whether or not to perform a cleanup pass using SIGKILL. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A list of human readable strings describing all issues encountered. It is up to the caller to decide whether to treat this as an error condition. ||\n\n\u003cbr /\u003e"]]