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

Class NonEquivariantMaxPool

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

Source from the content-addressed store, hash-verified

358
359
360class NonEquivariantMaxPool(nn.Module):
361 def __init__(self, dim=-1):
362 super(NonEquivariantMaxPool, self).__init__()
363 self.dim = dim
364
365 def forward(self, x):
366 '''
367 x: point features of shape [B, C, N]
368 '''
369 return torch.max(x, dim=self.dim, keepdim=True)[0]
370
371
372class NonEquivariantStdFeature(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected