Support pure Keras 3 keras_mdn_layer v0.7.0-alpha#65
Open
cpmpercussion wants to merge 7 commits intomainfrom
Open
Support pure Keras 3 keras_mdn_layer v0.7.0-alpha#65cpmpercussion wants to merge 7 commits intomainfrom
cpmpercussion wants to merge 7 commits intomainfrom
Conversation
…w-probability and tf-keras - Replace keras-mdn-layer 0.6.0 with 0.7.0-alpha git dep (pure Keras 3, no tfp) - Remove tensorflow-probability and tf-keras dependencies - Fix TFLite conversion: use from_concrete_functions instead of from_keras_model (from_keras_model fails with Keras 3 custom layers on TF 2.16-2.19) - Fix TFLite no-signature fallback: map inputs by position and outputs by shape instead of relying on tensor names (which differ across conversion methods) - Simplify CI matrix to Python 3.11+3.12 x Ubuntu+macOS with poetry-locked deps - Existing bundled .tflite models (e.g. Roland S-1) continue to work unchanged Closes #64 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ilure) The from_concrete_functions approach with serve(*args) produced TFLite SignatureDefs with positional input keys (args_0, args_1, ...) on the cp311 wheel, causing TfliteMDRNN._discover_output_keys to fail with 'Invalid Input name (inputs) for SignatureDef'. The cp312 wheel produced no SignatureDef at all, so 3.12 accidentally worked via the fallback path. from_keras_model preserves the model's named inputs in the SignatureDef and the SignatureRunner works correctly on TF 2.19.1+ with Keras 3. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…indows and python 3.11.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #64
keras-mdn-layerfrom v0.6.0 to v0.7.0-alpha (pure Keras 3, backend-agnostic)tensorflow-probabilityandtf-kerasdependencies (no longer needed)from_concrete_functionsinstead offrom_keras_model)What still works
.tflitemodels (e.g. Roland S-1 config) load and run correctlyStill to test
poetry run ./start_impsy.py runTest plan
poetry run ./start_impsy.py run -c configs/roland-s-1.toml.tfliteand run correctly🤖 Generated with Claude Code