Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperCodec committed Apr 16, 2024
1 parent aee433f commit 9369c11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/topology/activation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ impl ActivationRegistry {
let acts = self.activations();

acts.into_iter()
.filter(|a| {
a.scope != ActivationScope::NONE && a.scope.contains(scope)
})
.filter(|a| a.scope != ActivationScope::NONE && a.scope.contains(scope))
.collect()
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/topology/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,6 @@ impl NeuronTopology {
) -> Self {
let mut activations: Vec<_> = activations.into_iter().collect();



Self::new_with_activation(
inputs,
activations.remove(rng.gen_range(0..activations.len())),
Expand Down

0 comments on commit 9369c11

Please sign in to comment.