MCPcopy Create free account
hub / github.com/pytorch/pytorch / _normalize_namescope

Function _normalize_namescope

caffe2/python/modeling/parameter_sharing.py:80–84  ·  view source on GitHub ↗
(namescope)

Source from the content-addressed store, hash-verified

78
79
80def _normalize_namescope(namescope):
81 if namescope and namescope[-1] != scope._NAMESCOPE_SEPARATOR:
82 return namescope + scope._NAMESCOPE_SEPARATOR
83 else:
84 return namescope
85
86
87@contextlib.contextmanager

Callers 1

ParameterSharingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…