Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Keras File Format Issues #88

Closed
bpaul4 opened this issue Mar 11, 2024 · 1 comment · Fixed by #128
Closed

Resolve Keras File Format Issues #88

bpaul4 opened this issue Mar 11, 2024 · 1 comment · Fixed by #128
Assignees
Labels
Priority:High High Priority Issue or PR

Comments

@bpaul4
Copy link
Contributor

bpaul4 commented Mar 11, 2024

TensorFlow updated to version 2.16.1 on March 8, 2024. Python 3.9+ tests in the main idaes-pse repository that install the latest package and run examples now throw errors similar to the message below:

E           ValueError: File format not supported: filepath=D:\a\idaes-pse\idaes-pse\idaes\core\surrogate\plotting\tests\keras_surrogate. Keras 3 only supports V3 `.keras` files and legacy H5 format files (`.h5` extension). Note that the legacy SavedModel format is not supported by `load_model()` in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use `keras.layers.TFSMLayer(D:\a\idaes-pse\idaes-pse\idaes\core\surrogate\plotting\tests\keras_surrogate, call_endpoint='serving_default')` (note that your `call_endpoint` might have a different name).

Examples that use Keras should be updated accordingly.

@bpaul4 bpaul4 added the Priority:High High Priority Issue or PR label Mar 11, 2024
@bpaul4 bpaul4 assigned bpaul4 and rundxdi and unassigned bpaul4 Mar 11, 2024
@bpaul4
Copy link
Contributor Author

bpaul4 commented Mar 11, 2024

Related to IDAES/idaes-pse#1369.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:High High Priority Issue or PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants