d2b072e3dc4c1b50935d0feb343e6e1debd1061c,src/garage/tf/algos/td3.py,TD3,init_opt,#TD3#,132

Before Change


            self.target_policy_f_prob_online = tensor_utils.compile_function(
                inputs=[self.target_policy.model.networks["default"].input],
                outputs=self.target_policy.model.networks["default"].outputs)
            self.target_qf_f_prob_online, _, _, _ = self.qf.build_net(
                trainable=False, name="target_qf")
            self.target_qf2_f_prob_online, _, _, _ = self.qf2.build_net(
                trainable=False, name="target_qf2")

            // Set up target init and update functions

After Change


                                  exploration_strategy=exploration_strategy)

    @overrides
    def init_opt(self):
        Build the loss function and init the optimizer.
        with tf.name_scope(self.name, "TD3"):
            // Create target policy (actor) and qf (critic) networks
            self.target_policy_f_prob_online = tensor_utils.compile_function(
                inputs=[self.target_policy.model.networks["default"].input],
                outputs=self.target_policy.model.networks["default"].outputs)

            self.target_qf_f_prob_online = tensor_utils.compile_function(
                inputs=self.target_qf.model.networks["default"].inputs,
                outputs=self.target_qf.model.networks["default"].outputs)

            self.target_qf2_f_prob_online = tensor_utils.compile_function(
                inputs=self.target_qf2.model.networks["default"].inputs,
                outputs=self.target_qf2.model.networks["default"].outputs)

            // Set up target init and update functions
            with tf.name_scope("setup_target"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 17

Instances


Project Name: rlworkgroup/garage
Commit Name: d2b072e3dc4c1b50935d0feb343e6e1debd1061c
Time: 2019-09-27
Author: ahtsans@gmail.com
File Name: src/garage/tf/algos/td3.py
Class Name: TD3
Method Name: init_opt


Project Name: rlworkgroup/garage
Commit Name: d2b072e3dc4c1b50935d0feb343e6e1debd1061c
Time: 2019-09-27
Author: ahtsans@gmail.com
File Name: src/garage/tf/algos/td3.py
Class Name: TD3
Method Name: init_opt


Project Name: rlworkgroup/garage
Commit Name: a4ea66ecbdb3521b9921be227ab07883dd707f46
Time: 2019-07-05
Author: ahtsans@gmail.com
File Name: src/garage/tf/algos/ddpg.py
Class Name: DDPG
Method Name: init_opt


Project Name: rlworkgroup/garage
Commit Name: d2b072e3dc4c1b50935d0feb343e6e1debd1061c
Time: 2019-09-27
Author: ahtsans@gmail.com
File Name: src/garage/tf/algos/ddpg.py
Class Name: DDPG
Method Name: init_opt