e72838c03d87c8eb10f7cb8df8804496b14121ab,rllib/agents/marwil/marwil_torch_policy.py,,setup_mixins,#,70

Before Change



def setup_mixins(policy, obs_space, action_space, config):
    // Create a var.
    policy.ma_adv_norm = torch.tensor(
        [100.0], dtype=torch.float32, requires_grad=False)
    // Setup Value branch of our NN.
    ValueNetworkMixin.__init__(policy)

After Change



def setup_mixins(policy, obs_space, action_space, config):
    // Create a var.
    policy.ma_adv_norm = torch.tensor(
        [100.0], dtype=torch.float32, requires_grad=False).to(policy.device)
    // Setup Value branch of our NN.
    ValueNetworkMixin.__init__(policy)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: e72838c03d87c8eb10f7cb8df8804496b14121ab
Time: 2020-09-09
Author: 33183774+juliusfrost@users.noreply.github.com
File Name: rllib/agents/marwil/marwil_torch_policy.py
Class Name:
Method Name: setup_mixins


Project Name: microsoft/nni
Commit Name: e5a208bac69d34469652430fe42c220ed47c5a72
Time: 2020-10-12
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/torch/speedup/infer_shape.py
Class Name:
Method Name: view_inshape


Project Name: microsoft/nni
Commit Name: e5a208bac69d34469652430fe42c220ed47c5a72
Time: 2020-10-12
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/torch/speedup/infer_shape.py
Class Name:
Method Name: view_outshape