MCPcopy Index your code
hub / github.com/pytorch/pytorch / stripBlobName

Function stripBlobName

caffe2/python/data_parallel_model.py:1554–1560  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

1552
1553# A helper function to extract a parameter's name
1554def stripBlobName(param):
1555 # Format is "a/b/c/d" -> "b/c/d"
1556 if isinstance(param, core.GradientSlice):
1557 return stripBlobName(param.indices) + ":" + stripBlobName(param.values)
1558 else:
1559 name = str(param)
1560 return name[name.index(scope._NAMESCOPE_SEPARATOR) + 1:]
1561
1562
1563def _AnalyzeOperators(model):

Callers 6

FinalizeAfterCheckpointFunction · 0.85
modify_opsFunction · 0.85
_GroupByDeviceFunction · 0.85
_ComputeBlobsToSyncFunction · 0.85

Calls 2

isinstanceFunction · 0.85
indexMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…