5c42053fcd6821eb39eded56526cfe5f2070418a,sandbox/rocky/tf/optimizers/conjugate_gradient_optimizer.py,ConjugateGradientOptimizer,update_opt,#ConjugateGradientOptimizer#Any#Any#Any#Any#Any#Any#,166

Before Change


        

        inputs = tuple(inputs)
        if extra_inputs is None:
            extra_inputs = tuple()
        else:
            extra_inputs = tuple(extra_inputs)

        constraint_term, constraint_value = leq_constraint

        params = target.get_params(trainable=True)
        grads = tf.gradients(loss, xs=params)

After Change



            self.opt_fun = ext.lazydict(
                f_Hx_plain=lambda: tensor_utils.compile_function(
                    inputs=inputs + xs,
                    outputs=Hx_plain(),
                    log_name="f_Hx_plain",
                ),
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rlworkgroup/garage
Commit Name: 5c42053fcd6821eb39eded56526cfe5f2070418a
Time: 2018-05-25
Author: 35857569+gonzaiva@users.noreply.github.com
File Name: sandbox/rocky/tf/optimizers/conjugate_gradient_optimizer.py
Class Name: ConjugateGradientOptimizer
Method Name: update_opt


Project Name: reinforceio/tensorforce
Commit Name: a911645cbfdf502f1d323cb9a8d18f1a781b11d7
Time: 2017-03-11
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/models/distributed_model.py
Class Name: DistributedModel
Method Name: __init__


Project Name: reinforceio/tensorforce
Commit Name: 9128a4b20336fb8c07fc4e0e0985fe299d1a5f12
Time: 2017-05-20
Author: aok25@cl.cam.ac.uk
File Name: tensorforce/core/model.py
Class Name: Model
Method Name: create_tf_operations


Project Name: rlworkgroup/garage
Commit Name: 5c42053fcd6821eb39eded56526cfe5f2070418a
Time: 2018-05-25
Author: 35857569+gonzaiva@users.noreply.github.com
File Name: sandbox/rocky/tf/optimizers/conjugate_gradient_optimizer.py
Class Name: ConjugateGradientOptimizer
Method Name: update_opt