(state_dict)
| 406 | else: |
| 407 | |
| 408 | def remove_prefix_module(state_dict): |
| 409 | # remove the first or the second module |
| 410 | return convert_to_new_checkpoint(state_dict) |
| 411 | |
| 412 | def add_prefix_module(state_dict): |
| 413 | if all(map(lambda x: not x.startswith('module.'), state_dict.keys())): |
no test coverage detected