(model, weights, model_name)
| 49 | |
| 50 | |
| 51 | def replace(model, weights, model_name): |
| 52 | model.state_dict()[model_name].copy_(weights.detach()) |
| 53 | |
| 54 | |
| 55 | def replace_by_name(dest_model, src_model, old_name, new_name): |
no outgoing calls
no test coverage detected