MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / __init__

Method __init__

eval_code/recons/models/moge/model/modules.py:176–183  ·  view source on GitHub ↗
(self, dims: Sequence[int])

Source from the content-addressed store, hash-verified

174
175class MLP(nn.Sequential):
176 def __init__(self, dims: Sequence[int]):
177 nn.Sequential.__init__(self,
178 *itertools.chain(*[
179 (nn.Linear(dim_in, dim_out), nn.ReLU(inplace=True))
180 for dim_in, dim_out in zip(dims[:-2], dims[1:-1])
181 ]),
182 nn.Linear(dims[-2], dims[-1]),
183 )
184
185
186class ConvStack(nn.Module):

Callers 4

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

chainMethod · 0.80

Tested by

no test coverage detected