Skip to content

[FEATURE] Integrate gating & blending activations into WaveNet#193

Merged
sdatkinson merged 7 commits into
mainfrom
191-gating-blending
Jan 20, 2026
Merged

[FEATURE] Integrate gating & blending activations into WaveNet#193
sdatkinson merged 7 commits into
mainfrom
191-gating-blending

Conversation

@sdatkinson

Copy link
Copy Markdown
Owner

Continuing #192 .

Changes:

  • Consolidate gate and blend into a single "secondary" activation.
  • Remove backward-compatibility constructors in WaveNet classes--only support at factory level.
  • Bit more argument validation

Resolves #191.

João Felipe Santos and others added 7 commits January 19, 2026 17:35
…ams, and _LayerArray

- Removed boolean gated parameter constructors from _Layer class
- Removed boolean gated parameter constructors from LayerArrayParams struct
- Removed boolean gated parameter constructors from _LayerArray class
- Updated all test files to use GatingMode enum instead of bool gated
- Backward compatibility logic retained in Factory function for JSON parsing
- All tests pass after updating to use GatingMode enum
- Added validation checks in the _Layer constructor to ensure that gating and blending activations are not provided when the gating mode is set to NONE.
- Updated the constructor signature to remove default values for gating and blending activations, requiring explicit values during instantiation.
- Adjusted related test cases to reflect the new constructor requirements, ensuring comprehensive coverage of the updated functionality.
- Improved error handling by throwing std::invalid_argument exceptions for invalid activation configurations.
- Updated the _Layer constructor to replace gating and blending activation parameters with a single secondary_activation parameter.
- Added validation to ensure secondary_activation is provided for GATED and BLENDED modes.
- Adjusted related test cases to reflect the new constructor signature and ensure proper functionality.
- Removed default values for gating and blending activations, enforcing explicit activation configuration during instantiation.
@sdatkinson sdatkinson merged commit 8987a3c into main Jan 20, 2026
1 check passed
@sdatkinson sdatkinson deleted the 191-gating-blending branch January 20, 2026 07:15
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.

Integrate Gating and Blending activations in WaveNet

1 participant