20a9d51cccbe4e995aa34d4965bde8dcd25b8f6b,vocoder/layers/losses.py,GeneratorLoss,forward,#GeneratorLoss#Any#Any#Any#Any#Any#Any#Any#,161

Before Change


            mse_fake_loss = 0
            if isinstance(scores_fake, list):
                for score_fake in scores_fake:
                    fake_loss = self.mse_loss(score_fake)
                    mse_fake_loss += fake_loss
            else:
                fake_loss = self.mse_loss(scores_fake)
                mse_fake_loss = fake_loss

After Change


            return_dict["G_feat_match_loss"] = feat_match_loss
            adv_loss += self.feat_match_loss_weight * feat_match_loss
        return_dict["G_loss"] = gen_loss + adv_loss
        return_dict["G_gen_loss"] = gen_loss
        return_dict["G_adv_loss"] = adv_loss
        return return_dict
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mozilla/TTS
Commit Name: 20a9d51cccbe4e995aa34d4965bde8dcd25b8f6b
Time: 2020-06-03
Author: erogol@hotmail.com
File Name: vocoder/layers/losses.py
Class Name: GeneratorLoss
Method Name: forward


Project Name: facebookresearch/Horizon
Commit Name: 4d68a1e4435dfeb5884093aa91a33e1b34a909cc
Time: 2019-02-13
Author: kittipat@fb.com
File Name: ml/rl/training/_dqn_trainer.py
Class Name: _DQNTrainer
Method Name: train


Project Name: mozilla/TTS
Commit Name: 6b1de26869251a3f0af0d22f9f1fe23d0556cc76
Time: 2020-06-15
Author: erogol@hotmail.com
File Name: vocoder/layers/losses.py
Class Name: GeneratorLoss
Method Name: forward