65bb3580e5cdd9adee17b5f80fba949550931271,horovod/tensorflow/__init__.py,,broadcast_global_variables,#Any#,96

Before Change


        root_rank: rank of the process from which global variables will be broadcasted
        to all other processes.
    
    return tf.group(*[tf.assign(var, broadcast(var, root_rank))
                      for var in tf.global_variables()])


class BroadcastGlobalVariablesHook(tf.train.SessionRunHook):
    

After Change


        root_rank: rank of the process from which global variables will be broadcasted
        to all other processes.
    
    return broadcast_variables(root_rank, tf.global_variables())

def broadcast_variables(root_rank, variables):
    Broadcasts variables from root rank to all other processes.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: horovod/horovod
Commit Name: 65bb3580e5cdd9adee17b5f80fba949550931271
Time: 2019-01-09
Author: 38317191+kuroko1t@users.noreply.github.com
File Name: horovod/tensorflow/__init__.py
Class Name:
Method Name: broadcast_global_variables


Project Name: drckf/paysage
Commit Name: eb3675e2edef347bbf56a36a81ebc6bc3f59ae58
Time: 2017-05-21
Author: charleskennethfisher@gmail.com
File Name: paysage/layers.py
Class Name: GaussianLayer
Method Name: random


Project Name: horovod/horovod
Commit Name: 6c22058b10d46efd195fbf8fed09954f0c1cd6a3
Time: 2018-09-26
Author: tgaddair@gmail.com
File Name: horovod/keras/__init__.py
Class Name:
Method Name: broadcast


Project Name: horovod/horovod
Commit Name: 15692dab6465f16c14d8aa0992c0c06fa5345214
Time: 2019-07-08
Author: alexander.sergeev@live.com
File Name: horovod/tensorflow/__init__.py
Class Name:
Method Name: broadcast_variables