246152b8d459bb331f904b330e57311d3bf54672,cube/models/vocoder.py,BeeCoder,learn,#BeeCoder#,98

Before Change


            // fft_pred = torch.rfft(y_pred, 1)
            loss = self._get_loss(batch_y, y_pred, len(x))
            loss.backward()
            self.trainer.step()
            total_loss += loss
            num_batches += 1

        total_loss = total_loss.item()

After Change


            // fft_orig = torch.rfft(batch_y, 1)
            // fft_pred = torch.rfft(y_pred, 1)
            loss = self._get_loss(batch_y, y_pred, len(x))
            if loss is not None:
                loss.backward()
                self.trainer.step()
                total_loss += loss
                num_batches += 1

        total_loss = total_loss.item()
        return total_loss / num_batches

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tiberiu44/TTS-Cube
Commit Name: 246152b8d459bb331f904b330e57311d3bf54672
Time: 2018-11-09
Author: tibi@racai.ro
File Name: cube/models/vocoder.py
Class Name: BeeCoder
Method Name: learn


Project Name: pytorch/tutorials
Commit Name: 1bc0efeae8590fb153bf3d2d7c4ee9a2958c7f42
Time: 2019-09-04
Author: lazToum@users.noreply.github.com
File Name: beginner_source/transfer_learning_tutorial.py
Class Name:
Method Name: train_model


Project Name: inferno-pytorch/inferno
Commit Name: ed2a46e8c254dde364b760de8357ebf46fe392b6
Time: 2020-03-17
Author: valentyna.zinchenko@embl.de
File Name: inferno/trainers/basic.py
Class Name: Trainer
Method Name: train_for


Project Name: DagnyT/hardnet
Commit Name: 2f6a851417385f156df3ca8da4dcb042a7fef661
Time: 2017-07-26
Author: anastasiya.mishchuk@gmail.com
File Name: HardNetClassicalHardNegMining.py
Class Name:
Method Name: train