[tf.data] Remove debug code.
authorjoel-shor <joelshor@google.com>
Tue, 1 May 2018 23:14:30 +0000 (02:14 +0300)
committerjoel-shor <joelshor@google.com>
Tue, 1 May 2018 23:14:30 +0000 (02:14 +0300)
tensorflow/contrib/data/python/ops/BUILD
tensorflow/contrib/data/python/ops/interleave_ops.py

index 9959ccc..7a3e42c 100644 (file)
@@ -184,7 +184,6 @@ py_library(
         "//tensorflow/python/data/ops:readers",
         "//tensorflow/python/data/util:nest",
         "//tensorflow/python/data/util:sparse",
-        "//tensorflow/python:platform",
     ],
 )
 
index 2a9c5b4..812a50e 100644 (file)
@@ -30,7 +30,6 @@ from tensorflow.python.framework import ops
 from tensorflow.python.ops import array_ops
 from tensorflow.python.ops import math_ops
 from tensorflow.python.util import deprecation
-from tensorflow.python.platform import tf_logging as logging
 
 
 def parallel_interleave(map_func,
@@ -240,9 +239,4 @@ def sample_from_datasets(datasets, weights=None, seed=None):
   selector_input = dataset_ops.Dataset.zip(
       (logits_ds, random_ops.RandomDataset(seed).batch(2))).map(select_dataset)
 
-  logging.warn('selector_input.output_types: %s', str(selector_input.output_types))
-  logging.warn('selector_input.output_shapes: %s', str(selector_input.output_shapes))
-  for i, dataset in enumerate(datasets):
-    logging.warn('dataset %i output_types: %s' % (i, str(dataset.output_types)))
-    logging.warn('dataset %i output_shapes: %s' % (i, str(dataset.output_shapes)))
   return DirectedInterleaveDataset(selector_input, datasets)