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

Class VNLinear

src/shape_assembly/models/encoder/vn_layers.py:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23class VNLinear(nn.Module):
24 def __init__(self, in_channels, out_channels):
25 super(VNLinear, self).__init__()
26 self.map_to_feat = nn.Linear(in_channels, out_channels, bias=False)
27
28 def forward(self, x):
29 '''
30 x: point features of shape [B, N_feat, 3, N_samples, ...]
31 '''
32 x_out = self.map_to_feat(x.transpose(1, -1)).transpose(1, -1)
33 return x_out
34
35
36class VNLeakyReLU(nn.Module):

Callers 4

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected