(self, inputs)
| 26 | self.rewards = [] |
| 27 | |
| 28 | def forward(self, inputs): |
| 29 | x = F.relu(F.dropout(self.fc1(inputs), 0.6)) |
| 30 | x = self.fc2(x) |
| 31 | |
| 32 | return F.softmax(x, -1) |
| 33 | |
| 34 | def select_action(self, inputs): |
| 35 | x = paddle.to_tensor(inputs).astype('float32').unsqueeze(0) |