()
| 156 | |
| 157 | |
| 158 | def get_world_size(): |
| 159 | if not dist.is_available(): |
| 160 | return 1 |
| 161 | if not dist.is_initialized(): |
| 162 | return 1 |
| 163 | return dist.get_world_size() |
| 164 | |
| 165 | |
| 166 | def synchronize(): |
no outgoing calls
no test coverage detected
searching dependent graphs…