MCPcopy Create free account
hub / github.com/AgentMaker/Paddle-RLBooks / __init__

Method __init__

ddpg/model.py:6–13  ·  view source on GitHub ↗
(self, state_dim, action_dim, max_action)

Source from the content-addressed store, hash-verified

4
5class Actor(nn.Layer):
6 def __init__(self, state_dim, action_dim, max_action):
7 super(Actor, self).__init__()
8
9 self.l1 = nn.Linear(state_dim, 400)
10 self.l2 = nn.Linear(400, 300)
11 self.l3 = nn.Linear(300, action_dim)
12
13 self.max_action = max_action
14
15 def forward(self, state):
16 a = F.relu(self.l1(state))

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected