Force the use of print function in generated code.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 13 Feb 2018 16:12:09 +0000 (08:12 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 13 Feb 2018 16:16:04 +0000 (08:16 -0800)
PiperOrigin-RevId: 185531979

tensorflow/contrib/py2tf/impl/config.py

index 6525806..8b81d09 100644 (file)
@@ -35,6 +35,7 @@ NO_SIDE_EFFECT_CONSTRUCTORS = set(('tensorflow',))
 # TODO(mdan): Verify that these names are not hidden by generated code.
 # TODO(mdan): Make sure copybara renames the reference below.
 COMPILED_IMPORT_STATEMENTS = (
+    'from __future__ import print_function',
     'import tensorflow as tf',
     'from tensorflow.contrib.py2tf import utils as '
     'py2tf_utils')