(model)
| 635 | |
| 636 | |
| 637 | def de_parallel(model): |
| 638 | # De-parallelize a model: returns single-GPU model if model is of type DP or DDP |
| 639 | return model.module if is_parallel(model) else model |
| 640 | |
| 641 | |
| 642 | def copy_attr(a, b, include=(), exclude=()): |
no test coverage detected