d2b634744401fff8166fed16f47e3be9be94cd6d,modules.py,glimpse_sensor,denormalize,#glimpse_sensor#Any#Any#,67

Before Change



    def denormalize(self, T, coords):
        x_original = torch.mul(coords[:, 0], int(T/2)) + int((T/2))
        y_original = torch.mul(coords[:, 1], int(T/2)) + int((T/2))
        return torch.stack([x_original, y_original]).long()

    def extract_single_patch(self, x, center, size):
        

After Change


        coordinates in the range [0, T] where T is
        the size of the image.
        
        return (0.5 * ((coords + 1.0) * T)).long()

    def normalize(self, T, coords):
        
        Convert coordinates in the range [0, T] to
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: d2b634744401fff8166fed16f47e3be9be94cd6d
Time: 2018-01-20
Author: kevinarmandzakka@gmail.com
File Name: modules.py
Class Name: glimpse_sensor
Method Name: denormalize


Project Name: kevinzakka/recurrent-visual-attention
Commit Name: 84d32df24d9b88464ed851dadda9bdd74ad67c5a
Time: 2018-01-24
Author: kevinarmandzakka@gmail.com
File Name: tests/test_retina.py
Class Name:
Method Name: denormalize


Project Name: ncullen93/torchsample
Commit Name: 6ddf825a4aa1bcf3a35bba8d36bc433fe5ebaa39
Time: 2017-04-24
Author: ncullen@Nicks-MacBook-Pro.local
File Name: torchsample/utils.py
Class Name:
Method Name: th_nearest_interp_3d