Skip to content

Instantly share code, notes, and snippets.

@marty1885
Created November 28, 2018 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marty1885/a7aa105605fddb610dc542cd26ec1611 to your computer and use it in GitHub Desktop.
Save marty1885/a7aa105605fddb610dc542cd26ec1611 to your computer and use it in GitHub Desktop.
size_t hidden_size = 30;
size_t seq_len = 3; //The length of traning srquence
network<sequential> nn;
nn << recurrent(lstm(3, hidden_size), seq_len);
nn << leaky_relu() << fc(hidden_size) << softmax();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment