8dcbf002d0058939802920c11f74791708838791,ml/rl/training/ddpg_predictor.py,CriticNet,forward,#CriticNet#Any#Any#,98

Before Change


        :param state state as list of state features
        :param state action as list of action features
        
        x = torch.cat(
            (Variable(torch.from_numpy(state).float()),
            Variable(torch.from_numpy(action).float())), dim=0
        )
        for i, activation in enumerate(self.activations):
            activation_func = getattr(F, activation)
            fc_func = getattr(self, self.layer_names[i])
            x = fc_func(x) if activation == "linear" else activation_func(fc_func(x))

After Change


        :param state state as list of state features
        :param state action as list of action features
        
        x = torch.cat((state, action), dim=1)
        for i, activation in enumerate(self.activations):
            activation_func = getattr(F, activation)
            fc_func = getattr(self, self.layer_names[i])
            x = fc_func(x) if activation == "linear" else activation_func(fc_func(x))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: facebookresearch/Horizon
Commit Name: 8dcbf002d0058939802920c11f74791708838791
Time: 2018-04-06
Author: edoardoc@fb.com
File Name: ml/rl/training/ddpg_predictor.py
Class Name: CriticNet
Method Name: forward


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 9e3ac57d2a0480ded339841dda18b13e2645987f
Time: 2018-05-12
Author: eriklindernoren@gmail.com
File Name: implementations/bicyclegan/bicyclegan.py
Class Name:
Method Name: sample_images


Project Name: ncullen93/torchsample
Commit Name: 2154d789ef0d79debe2cc522751ae7072e8b22dc
Time: 2017-04-28
Author: ncullen@modv-vlan533.0527.apn.wlan.wireless-pennnet.upenn.edu
File Name: torchsample/modules/super_module.py
Class Name: SuperModule
Method Name: predict_loader