520e8fb57b890a7249334d9e90c9ad209d0b849f,modules.py,retina,extract_patch,#retina#,73
Before Change
]
p = p.numpy()
p = np.pad(p, pad_dims, mode="constant")
p = torch.from_numpy(p)
// add correction factor
from_x += (size//2+1)
from_y += (size//2+1)
After Change
// cast to ints
from_x, to_x = from_x.data[0], to_x.data[0]
from_y, to_y = from_y.data[0], to_y.data[0]
// pad tensor in case exceeds
if self.exceeds(from_x, to_x, from_y, to_y, T):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: 520e8fb57b890a7249334d9e90c9ad209d0b849f
Time: 2018-02-10
Author: kevinarmandzakka@gmail.com
File Name: modules.py
Class Name: retina
Method Name: extract_patch
Project Name: maciejkula/spotlight
Commit Name: aa1eb21d82804500e2357cde21b18bcf6f87825a
Time: 2017-08-02
Author: maciej.kula@gmail.com
File Name: spotlight/factorization/explicit.py
Class Name: ExplicitFactorizationModel
Method Name: predict
Project Name: maciejkula/spotlight
Commit Name: aa1eb21d82804500e2357cde21b18bcf6f87825a
Time: 2017-08-02
Author: maciej.kula@gmail.com
File Name: spotlight/factorization/implicit.py
Class Name: ImplicitFactorizationModel
Method Name: predict
Project Name: kymatio/kymatio
Commit Name: 82c6a31ddcd1ced474c5d6620b2053f9db600e5e
Time: 2020-02-18
Author: edouard.oyallon@ens.fr
File Name: examples/1d/plot_real_signal.py
Class Name:
Method Name: