MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_name_scope

Function get_name_scope

tensorflow/contrib/framework/python/ops/ops.py:58–73  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

56
57
58def 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()

Callers

nothing calls this directly

Calls 1

get_name_scopeMethod · 0.80

Tested by

no test coverage detected