From 4b5639542cea54bece85456a0dea4a4e6594326f Mon Sep 17 00:00:00 2001 From: Francois Chollet Date: Mon, 27 Apr 2020 09:22:35 -0700 Subject: [PATCH] Remove warning upon using generator inputs with multiprocessing. PiperOrigin-RevId: 308634551 Change-Id: I3adf48e4955ee935ca30c3247bcdb45e18dc96c9 --- tensorflow/python/keras/engine/data_adapter.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tensorflow/python/keras/engine/data_adapter.py b/tensorflow/python/keras/engine/data_adapter.py index 83375c6ee2b..b109e65d9e6 100644 --- a/tensorflow/python/keras/engine/data_adapter.py +++ b/tensorflow/python/keras/engine/data_adapter.py @@ -849,11 +849,6 @@ class GeneratorDataAdapter(DataAdapter): max_queue_size): """Create a callable, possibly including an Enqueuer.""" if workers > 1 or (workers > 0 and use_multiprocessing): - if use_multiprocessing: - logging.warning( - UserWarning("Using a generator with `use_multiprocessing=True` " - "and multiple workers may duplicate your data. " - "Please consider using the `tf.data.Dataset`.")) def generator_fn(): enqueuer = data_utils.GeneratorEnqueuer( x, use_multiprocessing=use_multiprocessing)