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)
| 2746 | |
| 2747 | |
| 2748 | def 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 |
no outgoing calls
no test coverage detected