1f22feb7dae28cbaa157e900f3444680a6fe258f,catalyst/utils/distributed.py,,distributed_mean,#Any#,54

Before Change




def distributed_mean(value: float):
    if torch.distributed.is_initialized():
        value = torch.tensor(
            value,
            dtype=torch.float,

After Change


    
    Computes distributed mean among all nodes
    
    if is_torch_distributed_initialized():
        value = torch.tensor(
            value,
            dtype=torch.float,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: Scitator/catalyst
Commit Name: 1f22feb7dae28cbaa157e900f3444680a6fe258f
Time: 2020-03-11
Author: andrew.zharkov@abbyy.com
File Name: catalyst/utils/distributed.py
Class Name:
Method Name: distributed_mean


Project Name: catalyst-team/catalyst
Commit Name: 1f22feb7dae28cbaa157e900f3444680a6fe258f
Time: 2020-03-11
Author: andrew.zharkov@abbyy.com
File Name: catalyst/utils/distributed.py
Class Name:
Method Name: get_rank