Created
May 24, 2020 22:28
-
-
Save elumixor/b25736cf4f6e69d26d4aee7c71adb8aa to your computer and use it in GitHub Desktop.
Medium TRPO Actor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch.nn as nn | |
| actor_hidden = 32 | |
| actor = nn.Sequential(nn.Linear(state_size, actor_hidden), | |
| nn.ReLU(), | |
| nn.Linear(actor_hidden, num_actions), | |
| nn.Softmax(dim=1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment