Support Keras 3 models in from_keras - #2398
Conversation
|
@xadupre could you have a look at it? |
|
|
||
| #print(model_proto) |
There was a problem hiding this comment.
| #print(model_proto) |
Might be better to remove the debug statement and extra newlines
|
Hello, I just wanted to ask whether the pull request is still under review or if there is no further interest in it. If it is still being considered, is there anything I should change to make it suitable for integration? |
I am interested, and I think this would be a useful feature, however I feel that I am not the right reviewer for this PR |
039c046 to
47f8339
Compare
Signed-off-by: nfirle <nfirle@students.uni-mainz.de>
Signed-off-by: nfirle <nfirle@students.uni-mainz.de>
47f8339 to
7884e77
Compare
|
|
With the major repository changes that landed recently, this PR is now showing a merge conflicts. If you're up for it, feel free to retry and adapt the changes for the newer version — that would be much appreciated. |
|
does the supported tensorflow version of tf2onnx has to be updated before? |


Summary
This PR adds support for Keras 3 in the
from_kerasconversion function. Keras 3 introduced several breaking changes in model serialization and internal APIs, which caused the existing conversion logic to fail. This update ensures compatibility with the new format.Changes
from_keras3that handles models created with Keras 3.from_kerasto detect the Keras version and delegate tofrom_keras3when necessary.from_keras3function is designed to also work with older Keras versions, but for full backward compatibility, the originalfrom_keraslogic is preserved.