Skip to content

Commit

Permalink
Merge pull request #66 from HyperCodec/activation-fixes
Browse files Browse the repository at this point in the history
fix custom activation example
  • Loading branch information
HyperCodec authored Jun 13, 2024
2 parents 707c3e0 + a32bfff commit 53f21e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/custom_activation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ fn serde_nextgen(rewards: Vec<(AgentDNA, f32)>) -> Vec<AgentDNA> {
}

fn main() {
let log_activation = activation_fn!(f32::log10);
register_activation(log_activation);
let sin_activation = activation_fn!(f32::sin);
register_activation(sin_activation);

#[cfg(not(feature = "rayon"))]
let mut rng = rand::thread_rng();
Expand Down

0 comments on commit 53f21e9

Please sign in to comment.