Skip to content

Instantly share code, notes, and snippets.

@MikeLing
Created July 5, 2017 03:46
Show Gist options
  • Save MikeLing/503e4fe7b09f7f264ce0e30342ece688 to your computer and use it in GitHub Desktop.
Save MikeLing/503e4fe7b09f7f264ce0e30342ece688 to your computer and use it in GitHub Desktop.
void CNeuralNetwork::set_seed(int32_t seed)
{
m_rng->set_seed(seed);
for (int32_t i=0; i<m_num_layers; i++)
{
get_layer(i)->set_seed(seed);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment