(ops, blob_rename_f)
| 489 | |
| 490 | |
| 491 | def _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 | |
| 507 | def _rename_blob(name, blob_sizes, blob_ranges): |
no test coverage detected