neodroidvision.utilities.torch_utilities.distributing.distributing_utilities¶
Created on 01/03/2020
Functions
|
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]: list of data gathered from each rank |
|
Args: input_dict (dict): all the values will be reduced average (bool): whether to do average or sum Reduce the values in the dictionary from all processes so that all processes have the averaged results. |
|
This function disables printing when not in master process |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Helper function to synchronize (barrier) among all processes when using distributed training |
|
|
|