MCPcopy Create free account
hub / github.com/Robbyant/lingbot-depth / __init__

Method __init__

mdm/model/modules_decoder.py:116–123  ·  view source on GitHub ↗
(self, dims: Sequence[int])

Source from the content-addressed store, hash-verified

114
115class MLP(nn.Sequential):
116 def __init__(self, dims: Sequence[int]):
117 nn.Sequential.__init__(self,
118 *itertools.chain(*[
119 (nn.Linear(dim_in, dim_out), nn.ReLU(inplace=True))
120 for dim_in, dim_out in zip(dims[:-2], dims[1:-1])
121 ]),
122 nn.Linear(dims[-2], dims[-1]),
123 )
124
125
126class ConvStack(nn.Module):

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected