4b3ca2794fe54a4b71ab2bdaea57cfd01c2f2849,models/model_utils.py,psi,forward,#psi#Any#,58
Before Change
t_1 = output.split(self.block_size, 2)
stack = [t_t.contiguous().view(batch_size, d_height, d_depth) for t_t in t_1]
output = torch.stack(stack, 1)
output = output.permute(0, 2, 1, 3)
output = output.permute(0, 3, 1, 2)
return output.contiguous()
After Change
def forward(self, input):
bl, bl_sq = self.block_size, self.block_size_sq
bs, d, new_h, new_w = input.shape[0], input.shape[1], input.shape[2] // bl, input.shape[3] // bl
return input.reshape(bs, d, new_h, bl, new_w, bl).permute(0, 3, 5, 1, 2, 4).reshape(bs, d * bl_sq, new_h, new_w)
class ListModule(object):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: jhjacobsen/pytorch-i-revnet
Commit Name: 4b3ca2794fe54a4b71ab2bdaea57cfd01c2f2849
Time: 2020-05-06
Author: simon.pezold@web.de
File Name: models/model_utils.py
Class Name: psi
Method Name: forward
Project Name: ray-project/ray
Commit Name: d49c3fae0bc339c51468b91af773199848df95f5
Time: 2021-01-12
Author: sven@anyscale.io
File Name: rllib/models/torch/visionnet.py
Class Name: VisionNetwork
Method Name: forward
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: a38ac8958ebf1c61a10c4d5320f1e31d3d0b73dd
Time: 2020-05-23
Author: kevinarmandzakka@gmail.com
File Name: tests/test_retina.py
Class Name:
Method Name: main
Project Name: arraiy/torchgeometry
Commit Name: 5b11950f744b9c640b4e19fcfbd231813d376667
Time: 2019-12-20
Author: edgar.riba@gmail.com
File Name: kornia/geometry/spatial_soft_argmax.py
Class Name:
Method Name: conv_soft_argmax2d