7ae7768617cba5863ecd14f1169fa75682897fbc,torch/distributed/optim/zero_redundancy_optimizer.py,ZeroRedundancyOptimizer,_broadcast_params,#ZeroRedundancyOptimizer#,443
Before Change
)
// Consume all async calls
while len(self.work_handles) > 0:
work_handle = self.work_handles.popleft()
work_handle.wait()
def _update_param_groups(self, local_to_global: bool = False) -> None:
Sync learning rate and other optimizer attributes (needed to support schedulers).
If the global param groups have been altered, and we want to make sure
After Change
handles.append(dist.broadcast(tensor=bucket, src=global_src_rank, group=self.group, async_op=True))
// Wait for all the calls
_ = list(map(lambda x: x.wait(), handles))
def _update_param_groups(self, local_to_global: bool = False) -> None:
Sync learning rate and other optimizer attributes (needed to support schedulers).
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pytorch/pytorch
Commit Name: 7ae7768617cba5863ecd14f1169fa75682897fbc
Time: 2021-02-24
Author: benjamin.lefaudeux@gmail.com
File Name: torch/distributed/optim/zero_redundancy_optimizer.py
Class Name: ZeroRedundancyOptimizer
Method Name: _broadcast_params
Project Name: NifTK/NiftyNet
Commit Name: f9f1242e23bc4ad0433577b81274b9a6065fbb89
Time: 2017-07-13
Author: eli.gibson@gmail.com
File Name: niftynet/utilities/misc_io.py
Class Name:
Method Name: match_volume_shape_to_patch_definition
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: cf1b498536c3f28cbd6c7d58d665655cdfaf571d
Time: 2016-11-15
Author: jonwayne@google.com
File Name: bigquery/cloud-client/snippets.py
Class Name:
Method Name: list_rows