ec6113b96d65d4edb3da8aac88796bbd99fc9478,trainer.py,Trainer,train_one_epoch,#Trainer#,137

Before Change


            img, target = Variable(img), Variable(target)

            // initialize location and hidden state vectors
            l_t = Variable(
                torch.Tensor(
                    self.batch_size, 2
                ).uniform_(-1, 1)
            )
            h_t = Variable(
                torch.zeros(self.batch_size, self.hidden_size)
            )
            self.locs = []

After Change



            // initialize location and hidden state vectors
            h_t = torch.zeros(self.batch_size, self.hidden_size)
            l_t = torch.Tensor(self.batch_size, 2).uniform_(-1, 1)
            h_t, l_t = Variable(h_t), Variable(l_t)

            for t in range(self.num_glimpses - 1):
                // forward pass through model
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: a38ac8958ebf1c61a10c4d5320f1e31d3d0b73dd
Time: 2020-05-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: reset


Project Name: r9y9/wavenet_vocoder
Commit Name: 0a8e27413d721bf8d753e5e6061cc24f5bf6474f
Time: 2018-05-04
Author: zryuichi@gmail.com
File Name: wavenet_vocoder/mixture.py
Class Name:
Method Name: sample_from_discretized_mix_logistic