Skip to content

Conversation

@sdatkinson
Copy link
Owner

Resolves #206

- Updated LayerArrayParams to accept a vector of activation configurations, allowing each layer to have its own activation setting.
- Modified constructors and relevant methods in _LayerArray and _Layer to handle the new activation_configs parameter.
- Added validation to ensure the sizes of dilations and activation_configs match.
- Updated tests to create LayerArrayParams with multiple activation configurations based on dilations size.
- Introduced a new test function `test_layer_array_different_activations` to validate the behavior of a layer array using various activation functions (ReLU, Tanh, Sigmoid) across its layers.
- Updated `run_tests.cpp` to include the new test, ensuring comprehensive coverage of activation configurations.
- The test verifies that outputs differ when using mixed activations compared to an all-ReLU configuration, confirming the correct implementation of activation behavior.
…ivations

- Updated LayerArrayParams and related classes to accept vectors for gating modes and secondary activation configurations, allowing each layer to have distinct settings.
- Modified constructors and validation logic to ensure sizes of dilations, activation configurations, gating modes, and secondary activations match.
- Adjusted tests to create LayerArrayParams with multiple gating modes and secondary activations based on dilations size, ensuring comprehensive coverage of the new functionality.
@sdatkinson sdatkinson changed the title [FEAUTRE] WaveNet: Allow different activations, gating modes, and secondary activations in each layer of a layer array [FEATURE] WaveNet: Allow different activations, gating modes, and secondary activations in each layer of a layer array Jan 27, 2026
@sdatkinson sdatkinson merged commit 5aa9932 into main Jan 27, 2026
2 checks passed
@sdatkinson sdatkinson deleted the 206-activations branch January 27, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] WaveNet: Allow different activations for each layer in a layer array

2 participants