Skip to content

Refactor factory into separate config parser and unified create_dsp() construction path#227

Open
jfsantos wants to merge 1 commit intosdatkinson:mainfrom
jfsantos:feature/config-refactor
Open

Refactor factory into separate config parser and unified create_dsp() construction path#227
jfsantos wants to merge 1 commit intosdatkinson:mainfrom
jfsantos:feature/config-refactor

Conversation

@jfsantos
Copy link
Contributor

Add typed config structs (LinearConfig, LSTMConfig, ConvNetConfig, WaveNetConfig) and parse_config_json() functions per architecture. Introduce ModelConfig variant, ModelMetadata, and create_dsp() for unified model construction independent of JSON parsing. Refactor get_dsp() to use the new unified path. Register Linear factory (was previously missing).

This is being done in order to support parsers for formats other than JSON more easily. Those parsers should NOT be a part of Core, at least for now. I will be creating a separate repo for the binary .namb format that leverages this refactor if it gets merged.

Developed with support and sponsorship from TONE3000

Add typed config structs (LinearConfig, LSTMConfig, ConvNetConfig,
WaveNetConfig) and parse_config_json() functions per architecture.
Introduce ModelConfig variant, ModelMetadata, and create_dsp() for
unified model construction independent of JSON parsing. Refactor
get_dsp() to use the new unified path. Register Linear factory
(was previously missing).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant