(self)
| 18 | |
| 19 | class Policy(nn.Layer): |
| 20 | def __init__(self): |
| 21 | super(Policy, self).__init__() |
| 22 | self.fc1 = nn.Linear(4, 128) |
| 23 | self.fc2 = nn.Linear(128, 2) |
| 24 | |
| 25 | self.saved_log_probs = [] |
| 26 | self.rewards = [] |
| 27 | |
| 28 | def forward(self, inputs): |
| 29 | x = F.relu(F.dropout(self.fc1(inputs), 0.6)) |
nothing calls this directly
no outgoing calls
no test coverage detected