52c94b7ee970da69721ca64f291e38556310482e,rllib/agents/sac/sac_torch_model.py,SACTorchModel,q_variables,#SACTorchModel#,231

Before Change


    def q_variables(self):
        Return the list of variables for Q / twin Q nets.

        return list(self.q_net.parameters()) + \
            (list(self.twin_q_net.parameters()) if self.twin_q_net else [])

After Change


    def q_variables(self):
        Return the list of variables for Q / twin Q nets.

        return self.q_net.variables() + (self.twin_q_net.variables()
                                         if self.twin_q_net else [])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 52c94b7ee970da69721ca64f291e38556310482e
Time: 2021-02-02
Author: sven@anyscale.io
File Name: rllib/agents/sac/sac_torch_model.py
Class Name: SACTorchModel
Method Name: q_variables


Project Name: ray-project/ray
Commit Name: 52c94b7ee970da69721ca64f291e38556310482e
Time: 2021-02-02
Author: sven@anyscale.io
File Name: rllib/agents/sac/sac_torch_model.py
Class Name: SACTorchModel
Method Name: policy_variables