0f37436eae7485aa586231f85b8fc6b2ad4b78ca,horovod/tensorflow/elastic.py,TensorFlowKerasState,__init__,#TensorFlowKerasState#Any#Any#Any#,102
Before Change
def broadcast_object_with_session(obj):
return broadcast_object(obj, session=backend.get_session())
broadcast_object_fn = broadcast_object if not backend or _executing_eagerly() else broadcast_object_with_session
super(TensorFlowKerasState, self).__init__(bcast_object=broadcast_object_fn,
get_rank=rank,
**kwargs)
After Change
// For TensorFlow v1, we need to reuse the broadcast op to prevent incrementing the uids
bcast_op = broadcast_variables(_global_variables(), root_rank=0)
self._bcast_model = lambda: self.backend.get_session().run(bcast_op)
bcast_object = broadcast_object_fn(session=self.backend.get_session())
super(TensorFlowKerasState, self).__init__(bcast_object=bcast_object,
get_rank=rank,
**kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: horovod/horovod
Commit Name: 0f37436eae7485aa586231f85b8fc6b2ad4b78ca
Time: 2020-09-21
Author: taddair@uber.com
File Name: horovod/tensorflow/elastic.py
Class Name: TensorFlowKerasState
Method Name: __init__
Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/experimental/keras/resnet50.py
Class Name:
Method Name: main
Project Name: Hironsan/anago
Commit Name: f9af206c5d9a13cb84ccd4116e1a6505e5c02e8a
Time: 2017-07-06
Author: light.tree.1.13@gmail.com
File Name: anago/models/lstm-crf.py
Class Name: NeuralEntityModel
Method Name: report