9c309a959052ec40cf92cf4baa3894f5118cf8c4,se3cnn/blocks/point_gated_block.py,PointGatedBlock,forward,#PointGatedBlock#Any#Any#Any#,46
Before Change
else:
if len(difference_mat.size()) == 4:
batch, N, _M, _ = difference_mat.size()
if len(difference_mat.size()) == 3:
N, _M, _ = difference_mat.size()
size_out = sum(mul * (2 * n + 1) for n, mul in enumerate(self.repr_out))
if self.gate_act is not None:
g = y[:, size_out:]
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: 4
Non-data size: 5
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: Alexander-H-Liu/End-to-end-ASR-Pytorch
Commit Name: 28d8021977b9d811f84543ed85d5f011bc3695c6
Time: 2019-09-27
Author: alexliu36@gmail.com
File Name: src/asr.py
Class Name: Decoder
Method Name: forward
Project Name: lanpa/tensorboardX
Commit Name: 38e284c453bcdad445b300c832ec543f5a0e691e
Time: 2017-06-23
Author: huang.dexter@gmail.com
File Name: tensorboard/summary.py
Class Name:
Method Name: image
Project Name: cornellius-gp/gpytorch
Commit Name: 7570ee1d758c93dd4054009fc12be6cc31b54031
Time: 2018-11-25
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/interpolated_lazy_tensor.py
Class Name: InterpolatedLazyTensor
Method Name: _get_indices