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

Method get_name_scope

tensorflow/python/framework/ops.py:4217–4232  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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,

Callers 15

testGetNameScopeMethod · 0.80
get_name_scopeFunction · 0.80
_InsertQuantOpFunction · 0.80
summary_scopeFunction · 0.80
summary_writer_functionFunction · 0.80
_enter_scope_uncachedMethod · 0.80
fooMethod · 0.80
testGetNameScopeMethod · 0.80
init_scopeFunction · 0.80
get_name_scopeFunction · 0.80

Calls

no outgoing calls

Tested by 6

testGetNameScopeMethod · 0.64
fooMethod · 0.64
testGetNameScopeMethod · 0.64
callMethod · 0.64