(blob_names, devices, model, net, rendezvous, use_nccl,
max_concurrent_distributed_ops)
| 1235 | |
| 1236 | |
| 1237 | def _AllReduceBlobs(blob_names, devices, model, net, rendezvous, use_nccl, |
| 1238 | max_concurrent_distributed_ops): |
| 1239 | if rendezvous is None or rendezvous['num_shards'] <= 1: |
| 1240 | _AllReduceBlobsSingleHost( |
| 1241 | blob_names, |
| 1242 | devices, |
| 1243 | model, |
| 1244 | net, |
| 1245 | use_nccl |
| 1246 | ) |
| 1247 | else: |
| 1248 | _AllReduceBlobsDistributed( |
| 1249 | blob_names, |
| 1250 | devices, |
| 1251 | model, |
| 1252 | net, |
| 1253 | rendezvous, |
| 1254 | max_concurrent_distributed_ops, |
| 1255 | ) |
| 1256 | |
| 1257 | |
| 1258 | def _PruneParametersForSharing(model): |
no test coverage detected
searching dependent graphs…