Skip to content

Commit

Permalink
modify neurontopology to make it work better with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperCodec committed Jul 8, 2024
1 parent c9ccccf commit 3fa26b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/topology/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,10 @@ impl NeuronTopology {
activation,
}
}

pub fn activate(&self, value: f32) -> f32 {
self.activation.func.activate(value)
}
}

/// A pseudo-pointer of sorts used to make structural conversions very fast and easy to write.
Expand Down

0 comments on commit 3fa26b8

Please sign in to comment.