f3c5b75e59717c017fa3779b3f29b725e4ac6d9b,trainer.py,Trainer,train_one_epoch,#Trainer#,161

Before Change


                self.reset()

                // initialize location vector
                l_t = torch.Tensor(self.batch_size, 2).uniform_(-1, 1)
                l_t = Variable(l_t)

                // extract the glimpses
                log_pi = 0.
                for t in range(self.num_glimpses - 1):

After Change


                log_value("train_loss", losses.avg, epoch)
                log_value("train_acc", accs.avg, epoch)

            return losses.avg, accs.avg

    def validate(self, epoch):
        
        Evaluate the model on the validation set.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: f3c5b75e59717c017fa3779b3f29b725e4ac6d9b
Time: 2018-01-24
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: train_one_epoch


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 9e3ac57d2a0480ded339841dda18b13e2645987f
Time: 2018-05-12
Author: eriklindernoren@gmail.com
File Name: implementations/bicyclegan/bicyclegan.py
Class Name:
Method Name: sample_images


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: fc9e5824ad7bd3094f5012dc6fc3d2348481a2f4
Time: 2019-04-02
Author: eriklindernoren@live.se
File Name: implementations/bicyclegan/bicyclegan.py
Class Name:
Method Name: sample_images