MCPcopy Create free account
hub / github.com/geekcomputers/Python / GlobalMaxPool2d

Class GlobalMaxPool2d

ML/src/python/neuralforge/nn/modules.py:128–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 return x.mean([2, 3])
127
128class GlobalMaxPool2d(nn.Module):
129 def __init__(self):
130 super().__init__()
131
132 def forward(self, x):
133 return x.max(dim=2)[0].max(dim=2)[0]
134
135class AdaptiveAvgMaxPool2d(nn.Module):
136 def __init__(self):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected