Skip to content

Comments

Update 1.0.0 (massive rewrite update)#106

Open
HyperCodec wants to merge 120 commits intomainfrom
dev
Open

Update 1.0.0 (massive rewrite update)#106
HyperCodec wants to merge 120 commits intomainfrom
dev

Conversation

@HyperCodec
Copy link
Owner

No description provided.

HyperCodec and others added 30 commits April 16, 2024 15:23
Fix references to renamed account.
Add indicatif progress bars for examples and increase generation count.
Prevent duplicated neuron inputs
create custom activations example
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 17 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (2)

src/activation.rs:88

  • ActivationRegistry::activations_in_scope uses a.scope.contains(scope) without handling scope == NeuronScope::NONE. Because every bitflags value contains NONE (0 bits), calling activations_in_scope(NeuronScope::NONE) will currently return all activations, contradicting the documented meaning of NONE (“will not be randomly placed anywhere”).

Fix: explicitly return an empty vec for scope == NeuronScope::NONE, or add a guard in the filter (e.g., scope != NONE && a.scope != NONE && a.scope.contains(scope)).
src/activation.rs:206

  • ActivationFn deserialization panics when an activation name is missing (panic!("Activation function {name} not found")). Panicking inside Deserialize makes malformed/untrusted input able to crash consumers; serde expects this to return a D::Error instead.

Fix: replace the panic with Err(serde::de::Error::custom(...)) (and avoid unwrap() by using ok_or_else).


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HyperCodec
Copy link
Owner Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link

Copilot AI commented Feb 20, 2026

@HyperCodec I've opened a new pull request, #110, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 5 commits February 20, 2026 18:17
Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
…on panic

Co-authored-by: HyperCodec <72839119+HyperCodec@users.noreply.github.com>
Fix ActivationRegistry scope handling and ActivationFn deserialization panic
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 15 out of 17 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

src/activation.rs:29

  • activation_fn! passes stringify!($F).into() as the activation name, but ActivationFn::new takes name: &'static str. This will not compile (it produces a String). Use stringify!($F) directly (and similarly for the scoped macro arm).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@HyperCodec
Copy link
Owner Author

ok my codespace randomly deleted itself for no reason.

@HyperCodec
Copy link
Owner Author

@copilot the crossover test seems to always fail due to cyclic linkages. this may be related to the recent changes to the is_connection_safe method in this PR. find the issue and make your own PR to fix it.

Copy link

Copilot AI commented Feb 20, 2026

@HyperCodec I've opened a new pull request, #111, to work on those changes. Once the pull request is ready, I'll request review from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants