551436a8106f3292db2f7d1a6da3462f2aa8bb6b,maml_rl/policies/normal_mlp.py,NormalMLPPolicy,forward,#NormalMLPPolicy#Any#Any#,25
Before Change
sigma = F.linear(output, weight=params["sigma.weight"],
bias=params["sigma.bias"])
return Normal(loc=mu, scale=F.softplus(sigma))
After Change
output = self.nonlinearity(output)
mu = F.linear(output, weight=params["mu.weight"],
bias=params["mu.bias"])
scale = torch.exp(torch.clamp(params["sigma"], min=self.min_log_std))
return Normal(loc=mu, scale=scale)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tristandeleu/pytorch-maml-rl
Commit Name: 551436a8106f3292db2f7d1a6da3462f2aa8bb6b
Time: 2018-06-14
Author: tristan.deleu@gmail.com
File Name: maml_rl/policies/normal_mlp.py
Class Name: NormalMLPPolicy
Method Name: forward
Project Name: mozilla/TTS
Commit Name: 6f3dd1b6aedbb77de20b34b8494201c7d8af0c13
Time: 2019-11-12
Author: egolge@mozilla.com
File Name: layers/common_layers.py
Class Name: GravesAttention
Method Name: forward
Project Name: kengz/SLM-Lab
Commit Name: 4234eba42623cf468ffd77fcdf77ebc5ae510227
Time: 2019-08-01
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/policy_util.py
Class Name:
Method Name: init_action_pd