Skip to content

Instantly share code, notes, and snippets.

@elumixor
Created May 24, 2020 22:28
Show Gist options
  • Select an option

  • Save elumixor/b25736cf4f6e69d26d4aee7c71adb8aa to your computer and use it in GitHub Desktop.

Select an option

Save elumixor/b25736cf4f6e69d26d4aee7c71adb8aa to your computer and use it in GitHub Desktop.
Medium TRPO Actor
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