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

Function name_from_scope_name

tensorflow/python/framework/ops.py:2748–2757  ·  view source on GitHub ↗

Returns the name of an op given the name of its scope. Args: name: the name of the scope. Returns: the name of the op (equal to scope name minus any trailing slash).

(name)

Source from the content-addressed store, hash-verified

2746
2747
2748def name_from_scope_name(name):
2749 """Returns the name of an op given the name of its scope.
2750
2751 Args:
2752 name: the name of the scope.
2753
2754 Returns:
2755 the name of the op (equal to scope name minus any trailing slash).
2756 """
2757 return name[:-1] if (name and name[-1] == "/") else name
2758
2759
2760_MUTATION_LOCK_GROUP = 0

Callers 2

_create_op_internalMethod · 0.85
name_scopeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected