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

Method __init__

src/shape_assembly/models/encoder/vn_layers.py:145–151  ·  view source on GitHub ↗
(self, num_features, dim)

Source from the content-addressed store, hash-verified

143
144class VNBatchNorm(nn.Module):
145 def __init__(self, num_features, dim):
146 super(VNBatchNorm, self).__init__()
147 self.dim = dim
148 if dim == 3 or dim == 4:
149 self.bn = nn.BatchNorm1d(num_features)
150 elif dim == 5:
151 self.bn = nn.BatchNorm2d(num_features)
152
153 def forward(self, x):
154 '''

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected