aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/__init__.py
diff options
context:
space:
mode:
authorGravatar Dandelion Man? <dandelion@google.com>2017-05-31 17:22:42 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-31 17:26:37 -0700
commit0462416f6498d964310ba05a38a23bd1eabba3bf (patch)
tree44b4c0ef6fccb107be5c51639dd937f0922157c0 /tensorflow/python/__init__.py
parent458f94c128fa5f72085be9a2489765615e1951a7 (diff)
Add make_ndarray, tensor_proto, and MetaGraphDef to tf api.
Since TensorProtos are part of the TensorFlow API, it makes sense to also include the methods that generate and parse them. Similarly, we write out MetaGraphDef protos in the summary writer, so we should provide the proto as well. This is part of an ongoing effort to have TensorBoard only consume TensorFlow methods through the public api. PiperOrigin-RevId: 157657564
Diffstat (limited to 'tensorflow/python/__init__.py')
-rw-r--r--tensorflow/python/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/python/__init__.py b/tensorflow/python/__init__.py
index d4f8b8b2f8..9f4e92204b 100644
--- a/tensorflow/python/__init__.py
+++ b/tensorflow/python/__init__.py
@@ -54,6 +54,7 @@ from tensorflow.core.framework.node_def_pb2 import *
from tensorflow.core.framework.summary_pb2 import *
from tensorflow.core.framework.attr_value_pb2 import *
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 *
@@ -144,6 +145,7 @@ _allowed_symbols = [
'GraphOptions',
'HistogramProto',
'LogMessage',
+ 'MetaGraphDef',
'NameAttrList',
'NodeDef',
'OptimizerOptions',