(p)
| 139 | |
| 140 | |
| 141 | def is_model_parallel_parameter(p) -> bool: |
| 142 | if hasattr(p, 'model_parallel') and p.model_parallel: |
| 143 | return True |
| 144 | |
| 145 | if hasattr(p, 'tensor_model_parallel') and p.tensor_model_parallel: |
| 146 | return True |
| 147 | |
| 148 | return False |
| 149 | |
| 150 | |
| 151 | def copy_to_device(item, device, criterion_func): |
no outgoing calls