From cca1b71352d246fc292d6e6b9cda63810c659c83 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" <gardener@tensorflow.org> Date: Mon, 17 Apr 2017 18:44:28 -0800 Subject: [PATCH] Expose `get_name_scope` and fix example docstring. Change: 153420717 --- tensorflow/contrib/framework/python/ops/ops.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tensorflow/contrib/framework/python/ops/ops.py b/tensorflow/contrib/framework/python/ops/ops.py index 2117a24965a..4fccc2ceac7 100644 --- a/tensorflow/contrib/framework/python/ops/ops.py +++ b/tensorflow/contrib/framework/python/ops/ops.py @@ -21,7 +21,8 @@ from __future__ import print_function from tensorflow.python.framework import ops -__all__ = ['get_graph_from_inputs'] +__all__ = ['get_graph_from_inputs', + 'get_name_scope'] def get_graph_from_inputs(op_input_list, graph=None): @@ -62,7 +63,7 @@ def get_name_scope(): ```python with tf.name_scope('scope1'): with tf.name_scope('scope2'): - print(tf.get_name_scope()) + print(tf.contrib.framework.get_name_scope()) ``` would print the string `scope1/scope2`.