9c309a959052ec40cf92cf4baa3894f5118cf8c4,se3cnn/blocks/point_gated_block.py,PointGatedBlock,forward,#PointGatedBlock#,46
Before Change
g = self.gate_act(g)
begin_g = 0 // index of first scalar gate capsule
z = y.new_empty((y.size(0), size_out, y.size(2)))
begin_y = 0 // index of first capsule
for n, mul in enumerate(self.repr_out):
if mul == 0:
After Change
has_batch = difference_matrix.dim() == 4
if not has_batch:
difference_matrix = difference_matrix.unsqueeze(0)
y = y.unsqueeze(0)
batch, N, _M, _ = difference_matrix.size()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: mariogeiger/se3cnn
Commit Name: 9c309a959052ec40cf92cf4baa3894f5118cf8c4
Time: 2019-07-08
Author: geiger.mario@gmail.com
File Name: se3cnn/blocks/point_gated_block.py
Class Name: PointGatedBlock
Method Name: forward
Project Name: milesial/Pytorch-UNet
Commit Name: 4af6e54bd4e1c642282fe512d97aa5a09ce16fca
Time: 2018-06-16
Author: ziyuantony@gmail.com
File Name: predict.py
Class Name:
Method Name: predict_img
Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: bed0a0ae26451c9897cf1ee0f7302e42eba9b42c
Time: 2018-08-23
Author: yhhuang@nlg.csie.ntu.edu.tw
File Name: transformer/Models.py
Class Name:
Method Name: get_attn_subsequent_mask