MCPcopy Create free account
hub / github.com/TEA-Lab/TwoByTwo / __init__

Method __init__

src/shape_assembly/models/encoder/vn_layers.py:59–65  ·  view source on GitHub ↗
(self, in_channels, share_nonlinearity=False, negative_slope=0.2)

Source from the content-addressed store, hash-verified

57
58class VNNewLeakyReLU(nn.Module):
59 def __init__(self, in_channels, share_nonlinearity=False, negative_slope=0.2):
60 super(VNNewLeakyReLU, self).__init__()
61 if share_nonlinearity == True:
62 self.map_to_dir = nn.Linear(in_channels, 1, bias=False)
63 else:
64 self.map_to_dir = nn.Linear(in_channels, in_channels, bias=False)
65 self.negative_slope = negative_slope
66
67 def forward(self, x):
68 '''

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected