MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / __init__

Method __init__

trl/examples/scripts/ddpo.py:87–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

85
86class MLP(nn.Module):
87 def __init__(self):
88 super().__init__()
89 self.layers = nn.Sequential(
90 nn.Linear(768, 1024),
91 nn.Dropout(0.2),
92 nn.Linear(1024, 128),
93 nn.Dropout(0.2),
94 nn.Linear(128, 64),
95 nn.Dropout(0.1),
96 nn.Linear(64, 16),
97 nn.Linear(16, 1),
98 )
99
100 @torch.no_grad()
101 def forward(self, embed):

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected