2dc38e78b9c84e3ea907984a2616afc9a34d9dcf,ch07/lib/dqn_model.py,NoisyLinear,__init__,#NoisyLinear#Any#Any#Any#Any#,10

Before Change


        self.sigma_weight = nn.Parameter(torch.full((out_features, in_features), sigma_init))
        self.register_buffer("epsilon_weight", torch.zeros(out_features, in_features))
        if bias:
            self.sigma_bias = nn.Parameter(torch.full((out_features,), sigma_init))
            self.register_buffer("epsilon_bias", torch.zeros(out_features))
        self.reset_parameters()

    def reset_parameters(self):

After Change


        self.register_buffer("sigma_weight", torch.full((out_features, in_features), sigma_init))
        self.register_buffer("epsilon_weight", torch.zeros(out_features, in_features))
        if bias:
            self.register_buffer("sigma_bias", torch.full((out_features,), sigma_init))
            self.register_buffer("epsilon_bias", torch.zeros(out_features))
        self.reset_parameters()

    def reset_parameters(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 2dc38e78b9c84e3ea907984a2616afc9a34d9dcf
Time: 2018-05-06
Author: max.lapan@gmail.com
File Name: ch07/lib/dqn_model.py
Class Name: NoisyLinear
Method Name: __init__


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 2dc38e78b9c84e3ea907984a2616afc9a34d9dcf
Time: 2018-05-06
Author: max.lapan@gmail.com
File Name: ch07/lib/dqn_model.py
Class Name: NoisyFactorizedLinear
Method Name: __init__


Project Name: asappresearch/sru
Commit Name: f8f727b0989abfc27ab3fe1b11fc9a7140fadcb0
Time: 2019-05-29
Author: light8lee@gmail.com
File Name: sru/sru_functional.py
Class Name: SRUCell
Method Name: __init__