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

Class GlobalAvgPool2d

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

Source from the content-addressed store, hash-verified

119 return output
120
121class GlobalAvgPool2d(nn.Module):
122 def __init__(self):
123 super().__init__()
124
125 def forward(self, x):
126 return x.mean([2, 3])
127
128class GlobalMaxPool2d(nn.Module):
129 def __init__(self):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected