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

Method forward

ML/src/python/neuralforge/nn/modules.py:141–144  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

139 self.max_pool = GlobalMaxPool2d()
140
141 def forward(self, x):
142 avg = self.avg_pool(x)
143 max_val = self.max_pool(x)
144 return torch.cat([avg, max_val], dim=1)
145
146class Flatten(nn.Module):
147 def __init__(self, start_dim=1):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected