Deprecate tf.keras.experimental.terminate_keras_multiprocessing_pools. This is not tested and not used, as far as we can tell.

PiperOrigin-RevId: 309097330
Change-Id: I0ded9c77dec034e3c02c78f3493b0982b17ca978
This commit is contained in:
Karmel Allison 2020-04-29 14:28:22 -07:00 committed by TensorFlower Gardener
parent a4e1b05d75
commit f98da6aa76

View File

@ -48,6 +48,7 @@ from six.moves.urllib.request import urlopen
from tensorflow.python.keras.utils.generic_utils import Progbar
from tensorflow.python.keras.utils.io_utils import path_to_string
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util import deprecation
from tensorflow.python.util import tf_inspect
from tensorflow.python.util.tf_export import keras_export
@ -552,6 +553,8 @@ def init_pool(seqs):
_SHARED_SEQUENCES = seqs
@deprecation.deprecated('2020-06-07', 'Please manage pools using the standard '
'Python lib.')
@keras_export('keras.experimental.terminate_keras_multiprocessing_pools')
def terminate_keras_multiprocessing_pools(grace_period=0.1, use_sigkill=False):
"""Destroy Keras' multiprocessing pools to prevent deadlocks.