514a2ddf9d74783f082e2b84ad3abb8ded1597b5,softlearning/algorithms/sac.py,SAC,__init__,#SAC#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,73

Before Change


        self._init_critic_update()
        self._init_target_ops()

        self._sess.run(tf.variables_initializer([
            variable for variable in tf.global_variables()
            if "low_level_policy" not in variable.name
        ]))

    @overrides
    def train(self):

After Change


        // Initialize all uninitialized variables. This prevents initializing
        // pre-trained policy and qf and vf variables.
        uninit_vars = []
        for var in tf.global_variables():
            try:
                self._sess.run(var)
            except tf.errors.FailedPreconditionError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rail-berkeley/softlearning
Commit Name: 514a2ddf9d74783f082e2b84ad3abb8ded1597b5
Time: 2018-05-27
Author: kristian.hartikainen@gmail.com
File Name: softlearning/algorithms/sac.py
Class Name: SAC
Method Name: __init__


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: tensorflow/magenta
Commit Name: 8cc96043566b24208c46c33bceb5fa699217a17c
Time: 2020-07-20
Author: adarob@google.com
File Name: magenta/models/gansynth/lib/train_util.py
Class Name: ProganDebugHook
Method Name: __init__