35cae047055de048c17ebf37e6ffa825bf4cd3d1,algo/ppo.py,PPO,update,#PPO#Any#,31
Before Change
1.0 + self.clip_param) * adv_targ
action_loss = -torch.min(surr1, surr2).mean()
value_loss = (return_batch - values).pow(2).mean()
self.optimizer.zero_grad()
(value_loss * self.value_loss_coef + action_loss -
dist_entropy * self.entropy_coef).backward()
After Change
1.0 + self.clip_param) * adv_targ
action_loss = -torch.min(surr1, surr2).mean()
value_loss = F.mse_loss(return_batch, values)
self.optimizer.zero_grad()
(value_loss * self.value_loss_coef + action_loss -
dist_entropy * self.entropy_coef).backward()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: ikostrikov/pytorch-a2c-ppo-acktr
Commit Name: 35cae047055de048c17ebf37e6ffa825bf4cd3d1
Time: 2018-06-13
Author: 8325708+alok@users.noreply.github.com
File Name: algo/ppo.py
Class Name: PPO
Method Name: update
Project Name: mozilla/TTS
Commit Name: 5547ddeb618eb9d8b3dbbee5b4313dc697d78b09
Time: 2020-06-15
Author: erogol@hotmail.com
File Name: vocoder/layers/losses.py
Class Name: MSEGLoss
Method Name: forward
Project Name: mozilla/TTS
Commit Name: 3eb730acf0a660d96f3af78cde0f5379b72fb3c6
Time: 2020-06-12
Author: erogol@hotmail.com
File Name: vocoder/layers/losses.py
Class Name: MSEGLoss
Method Name: forward