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

Function get_remapped_str

caffe2/python/core.py:1311–1314  ·  view source on GitHub ↗
(blob_str)

Source from the content-addressed store, hash-verified

1309 """
1310
1311 def get_remapped_str(blob_str):
1312 if isinstance(blob_str, bytes):
1313 blob_str = blob_str.decode('utf-8')
1314 return blob_remap.get(blob_str, blob_str).encode('utf-8')
1315
1316 for argument in op.arg:
1317 if len(argument.strings) > 0:

Callers 3

remap_listMethod · 0.85
CloneMethod · 0.85

Calls 4

isinstanceFunction · 0.85
encodeMethod · 0.80
decodeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…