Skip to content

Conversation

@sdatkinson
Copy link
Owner

There's a ton of parameters to the constructors to the wavenet layer and layer array classes. Refactor them to take a single "params" struct as the argument.

…arams

- Updated the _LayerArray constructor to accept a LayerArrayParams object, simplifying parameter management and improving code readability.
- Adjusted the internal logic to utilize the new params structure for layer initialization, ensuring consistency across layer configurations.
- Modified relevant test files to align with the new constructor signature, maintaining comprehensive test coverage for layer array functionality.
- Refactored the _Layer constructor to accept a LayerParams struct, consolidating parameters for improved readability and maintainability.
- Updated all relevant test files to utilize the new LayerParams structure, ensuring consistent layer initialization across the codebase.
- Enhanced the clarity of the code by reducing the number of parameters passed directly to the _Layer constructor.
@sdatkinson sdatkinson merged commit 4a43ab7 into main Jan 27, 2026
2 checks passed
@sdatkinson sdatkinson deleted the wavenet-constructors branch January 27, 2026 06:29
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.

2 participants