MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / _modify_blob_names

Function _modify_blob_names

detectron2/export/shared.py:491–504  ·  view source on GitHub ↗
(ops, blob_rename_f)

Source from the content-addressed store, hash-verified

489
490
491def _modify_blob_names(ops, blob_rename_f):
492 ret = []
493
494 def _replace_list(blob_list, replaced_list):
495 del blob_list[:]
496 blob_list.extend(replaced_list)
497
498 for x in ops:
499 cur = copy.deepcopy(x)
500 _replace_list(cur.input, list(map(blob_rename_f, cur.input)))
501 _replace_list(cur.output, list(map(blob_rename_f, cur.output)))
502 ret.append(cur)
503
504 return ret
505
506
507def _rename_blob(name, blob_sizes, blob_ranges):

Callers 1

save_graph_baseFunction · 0.85

Calls 1

_replace_listFunction · 0.85

Tested by

no test coverage detected