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

Method _NormalizeNamescope

caffe2/python/model_helper.py:274–280  ·  view source on GitHub ↗
(namescope)

Source from the content-addressed store, hash-verified

272
273 @staticmethod
274 def _NormalizeNamescope(namescope):
275 if namescope is None:
276 return scope.CurrentNameScope()
277 elif namescope == '' or namescope.endswith(scope._NAMESCOPE_SEPARATOR):
278 return namescope
279 else:
280 return namescope + scope._NAMESCOPE_SEPARATOR
281
282 def GetParams(self, namescope=None, top_scope=False):
283 '''

Callers 2

GetParamsMethod · 0.80
GetComputedParamsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected