4342569bc5e505a9d1a36b3b4a3d1269d3a2bcab,slm_lab/agent/algorithm/hydra_dqn.py,MultitaskDQN,space_act,#MultitaskDQN#Any#,46

Before Change


            if self.normalize_state:
                state = policy_util.update_online_stats_and_normalize_state(body, state)
            states.append(state)
        state = torch.tensor(states, device=self.net.device).view(-1).unsqueeze_(0).float()
        pdparam = self.calc_pdparam(state, evaluate=False)
        // use multi-policy. note arg change
        action_a, action_pd_a = self.action_policy(states, self, self.agent.nanflat_body_a, pdparam)

After Change


            if self.normalize_state:
                state = policy_util.update_online_stats_and_normalize_state(body, state)
            states.append(state)
        xs = [torch.from_numpy(state).float() for state in states]
        pdparam = self.calc_pdparam(xs, evaluate=False)
        // use multi-policy. note arg change
        action_a, action_pd_a = self.action_policy(states, self, self.agent.nanflat_body_a, pdparam)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kengz/SLM-Lab
Commit Name: 4342569bc5e505a9d1a36b3b4a3d1269d3a2bcab
Time: 2018-09-21
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/hydra_dqn.py
Class Name: MultitaskDQN
Method Name: space_act


Project Name: ray-project/ray
Commit Name: ce96b03b07a4a4bdd851aa84493c616cd291aff2
Time: 2020-10-06
Author: sven@anyscale.io
File Name: rllib/agents/ddpg/ddpg_torch_model.py
Class Name: DDPGTorchModel
Method Name: __init__


Project Name: azavea/raster-vision
Commit Name: 4cb6414084163db7fb5bf5f0e29a4c19009dcad0
Time: 2020-08-19
Author: AdeelH@users.noreply.github.com
File Name: rastervision_pytorch_learner/rastervision/pytorch_learner/semantic_segmentation_learner.py
Class Name: SemanticSegmentationDataset
Method Name: __getitem__