Returns the current name scope. For example: ```python with tf.name_scope('scope1'): with tf.name_scope('scope2'): print(tf.compat.v1.get_default_graph().get_name_scope()) ``` would print the string `scope1/scope2`. Returns: A string representing the cu
(self)
| 4215 | return name |
| 4216 | |
| 4217 | def get_name_scope(self): |
| 4218 | """Returns the current name scope. |
| 4219 | |
| 4220 | For example: |
| 4221 | |
| 4222 | ```python |
| 4223 | with tf.name_scope('scope1'): |
| 4224 | with tf.name_scope('scope2'): |
| 4225 | print(tf.compat.v1.get_default_graph().get_name_scope()) |
| 4226 | ``` |
| 4227 | would print the string `scope1/scope2`. |
| 4228 | |
| 4229 | Returns: |
| 4230 | A string representing the current name scope. |
| 4231 | """ |
| 4232 | return self._name_stack |
| 4233 | |
| 4234 | @tf_contextlib.contextmanager |
| 4235 | def _colocate_with_for_gradient(self, op, gradient_uid, |
no outgoing calls