9c309a959052ec40cf92cf4baa3894f5118cf8c4,se3cnn/blocks/point_gated_block.py,PointGatedBlock,forward,#PointGatedBlock#,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
if self.scalar_act is None and self.gate_act is None:
return y
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()
size_out = sum(mul * (2 * l + 1) for l, mul in enumerate(self.repr_out))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: Scitator/catalyst
Commit Name: e839626c28d8dc6030ce71f3619e934b36fb6627
Time: 2020-10-23
Author: Balaganskij.NN@phystech.edu
File Name: catalyst/metrics/functional.py
Class Name:
Method Name: process_multiclass_components
Project Name: PIQuIL/QuCumber
Commit Name: 10bdd46d76d35cfba3a484b007ea3e14af801813
Time: 2019-12-09
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/binary_rbm.py
Class Name: BinaryRBM
Method Name: effective_energy