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

Method __init__

ML/src/python/neuralforge/nn/modules.py:136–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134
135class AdaptiveAvgMaxPool2d(nn.Module):
136 def __init__(self):
137 super().__init__()
138 self.avg_pool = GlobalAvgPool2d()
139 self.max_pool = GlobalMaxPool2d()
140
141 def forward(self, x):
142 avg = self.avg_pool(x)

Callers

nothing calls this directly

Calls 3

GlobalAvgPool2dClass · 0.85
GlobalMaxPool2dClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected