(stat, max_size=4096)
return stats[0]
Gather a `Statistics` object accross multiple process/nodes

        Args:
            stat(:obj:Statistics): the statistics object to gather
                accross all processes/nodes
            max_size(int): max buffer size to use

        Returns:
            `Statistics`, the update stats object
Gather a `Statistics` object accross multiple process/nodes
Gather a Statistics object accross multiple process / nodes
def all_gather_stats(stat, max_size=4096):
        """
        Gather a `Statistics` object accross multiple process/nodes

        Args:
            stat(:obj:Statistics): the statistics object to gather
                accross all processes/nodes
            max_size(int): max buffer size to use

        Returns:
            `Statistics`, the update stats object
        """
        stats = Statistics.all_gather_stats_list([stat], max_size=max_size)
        return stats[0]
def all_gather_stats ( stat , max_size = 4096 ) : stats = Statistics . all_gather_stats_list ( [ stat ] , max_size = max_size ) return stats [ 0 ]