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

Method __init__

ML/src/python/neuralforge/nn/modules.py:147–149  ·  view source on GitHub ↗
(self, start_dim=1)

Source from the content-addressed store, hash-verified

145
146class Flatten(nn.Module):
147 def __init__(self, start_dim=1):
148 super().__init__()
149 self.start_dim = start_dim
150
151 def forward(self, x):
152 return x.flatten(self.start_dim)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected