f3e7b16ce89d4e737e7608996df2bd241d594a58,se3cnn/blocks/gated_block.py,GatedBlock,forward,#GatedBlock#,96
Before Change
// convolution
z = self.conv(x)
// gate
if self.scalar_act is not None or self.gate_act is not None:
z = torch.utils.checkpoint.checkpoint(gate, z) if self.checkpoint else gate(z)
// stride
if self.stride > 1:
z = low_pass_filter(z, self.stride, self.stride)
// dropout
if self.dropout is not None:
z = self.dropout(z)
return z
After Change
if self.gate_act is not None:
g = y[:, size_out:]
assert g.size(1) == sum(self.repr_out[1:])
g = self.gate_act(g)
begin_g = 0 // index of first scalar gate capsule
z = y.new_empty(batch, size_out, *size)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: mariogeiger/se3cnn
Commit Name: f3e7b16ce89d4e737e7608996df2bd241d594a58
Time: 2019-07-09
Author: geiger.mario@gmail.com
File Name: se3cnn/blocks/gated_block.py
Class Name: GatedBlock
Method Name: forward
Project Name: CamDavidsonPilon/lifelines
Commit Name: b649cc365040d9cd63631c763d1c485dfe981399
Time: 2020-05-11
Author: cam.davidson.pilon@gmail.com
File Name: experiments/working_npmle.py
Class Name:
Method Name: create_turnball_intervals
Project Name: scikit-optimize/scikit-optimize
Commit Name: ec35eaac297d1f59eba15a8eb4abba0dc9222fbe
Time: 2016-08-17
Author: manojkumarsivaraj334@gmail.com
File Name: skopt/tests/test_forest_opt.py
Class Name:
Method Name: check_minimize