aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/__init__.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-14 10:06:41 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-14 10:10:33 -0700
commit2d29a4ebf514f7afb70108b1f5ae84c866740f1a (patch)
tree1e25edb08d9d5758cd2c3581f747cff1a354c97c /tensorflow/python/__init__.py
parent8ca083610266e50e3ce8b7c4913bcf9d9f3af57f (diff)
Remove tf.RewriterConfig from the TensorFlow Python API
This is an API-only change. Rewriter behavior is unaffected. tf.RewriterConfig has been excluded from the 1.2 release, and was not in previous releases, and so is not subject to semantic versioning. It needs a bit of work before we fix an API. Graph rewriting is still available, just not as tf.RewriterConfig. Instead add an explicit import: from tensorflow.core.protobuf import rewriter_config_pb2 Then switch tf.RewriterConfig to rewriter_config_pb2.RewriterConfig (likewise for tf.AutoParallelOptions). Graph rewriting is subject to change, and has no API stability guarantee. PiperOrigin-RevId: 158991934
Diffstat (limited to 'tensorflow/python/__init__.py')
-rw-r--r--tensorflow/python/__init__.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tensorflow/python/__init__.py b/tensorflow/python/__init__.py
index 9f4e92204b..e11c5e44a9 100644
--- a/tensorflow/python/__init__.py
+++ b/tensorflow/python/__init__.py
@@ -57,7 +57,6 @@ from tensorflow.core.protobuf.meta_graph_pb2 import TensorInfo
from tensorflow.core.protobuf.meta_graph_pb2 import MetaGraphDef
from tensorflow.core.protobuf.config_pb2 import *
from tensorflow.core.protobuf.tensorflow_server_pb2 import *
-from tensorflow.core.protobuf.rewriter_config_pb2 import *
from tensorflow.core.util.event_pb2 import *
# Framework
@@ -132,7 +131,6 @@ from tensorflow.python.ops import tensor_array_ops
# documentation, or remove.
_allowed_symbols = [
'AttrValue',
- 'AutoParallelOptions',
'ConfigProto',
'ClusterDef',
'DeviceSpec',
@@ -149,7 +147,6 @@ _allowed_symbols = [
'NameAttrList',
'NodeDef',
'OptimizerOptions',
- 'RewriterConfig',
'RunOptions',
'RunMetadata',
'SessionLog',