a2d4c181f1aa7e49dd5e6bc02bde9a5048be6b54,ch07/lib/dqn_model.py,DQN,__init__,#DQN#Any#Any#Any#Any#,75

Before Change


        super(DQN, self).__init__()

        self.conv = nn.Sequential(
            nn.Conv2d(input_shape[0], 32, kernel_size=8, stride=4),
            nn.ReLU(),
            nn.Conv2d(32, 64, kernel_size=4, stride=2),
            nn.ReLU(),

After Change


        sigma_init = sigma_zero / math.sqrt(in_features)
        self.sigma_weight = nn.Parameter(torch.Tensor(out_features, in_features).fill_(sigma_init))
        self.register_buffer("epsilon_input", torch.zeros(1, in_features))
        self.register_buffer("epsilon_output", torch.zeros(out_features, 1))
        if bias:
            self.sigma_bias = nn.Parameter(torch.Tensor(out_features).fill_(sigma_init))

    def forward(self, input):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: a2d4c181f1aa7e49dd5e6bc02bde9a5048be6b54
Time: 2017-10-28
Author: max.lapan@gmail.com
File Name: ch07/lib/dqn_model.py
Class Name: DQN
Method Name: __init__


Project Name: open-mmlab/mmdetection
Commit Name: d9172919d00695f0dddb0ab10c89c3b7a8e26427
Time: 2019-10-23
Author: erotemic@gmail.com
File Name: mmdet/models/losses/ghm_loss.py
Class Name: GHMC
Method Name: __init__


Project Name: cornellius-gp/gpytorch
Commit Name: 5b3e337c7a67ea470dec1a4987eefb12168783f6
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/kernels/grid_interpolation_kernel.py
Class Name: GridInterpolationKernel
Method Name: __init__