Returns the current name scope of the default graph. For example: ```python with tf.name_scope('scope1'): with tf.name_scope('scope2'): print(tf.contrib.framework.get_name_scope()) ``` would print the string `scope1/scope2`. Returns: A string representing the
()
| 56 | |
| 57 | |
| 58 | def get_name_scope(): |
| 59 | """Returns the current name scope of the default graph. |
| 60 | |
| 61 | For example: |
| 62 | |
| 63 | ```python |
| 64 | with tf.name_scope('scope1'): |
| 65 | with tf.name_scope('scope2'): |
| 66 | print(tf.contrib.framework.get_name_scope()) |
| 67 | ``` |
| 68 | would print the string `scope1/scope2`. |
| 69 | |
| 70 | Returns: |
| 71 | A string representing the current name scope. |
| 72 | """ |
| 73 | return ops.get_default_graph().get_name_scope() |
nothing calls this directly
no test coverage detected