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

Fix export for subclass models with multiple inputs. #19720

Merged
merged 1 commit into from
May 17, 2024

Conversation

hertschuh
Copy link
Contributor

The export now supports subclasses of Model for which the call method takes more than one input argument. Note that it is required for the model class to implement a build method with a signature that matches the call method.

The export now supports subclasses of `Model` for which the `call` method takes more than one input argument. Note that it is required for the model class to implement a `build` method with a signature that matches the `call` method.
@codecov-commenter
Copy link

codecov-commenter commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.62%. Comparing base (097673f) to head (a028e61).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19720      +/-   ##
==========================================
- Coverage   78.52%   73.62%   -4.91%     
==========================================
  Files         498      498              
  Lines       45757    45749       -8     
  Branches     8454     8453       -1     
==========================================
- Hits        35931    33682    -2249     
- Misses       8091    10405    +2314     
+ Partials     1735     1662      -73     
Flag Coverage Δ
keras 73.50% <100.00%> (-4.88%) ⬇️
keras-jax ?
keras-numpy 56.30% <25.00%> (+<0.01%) ⬆️
keras-tensorflow 63.41% <100.00%> (+<0.01%) ⬆️
keras-torch 62.01% <25.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@fchollet fchollet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels May 17, 2024
@fchollet fchollet merged commit 20bc267 into keras-team:master May 17, 2024
6 checks passed
@google-ml-butler google-ml-butler bot removed awaiting review ready to pull Ready to be merged into the codebase kokoro:force-run labels May 17, 2024
@hertschuh hertschuh deleted the multi_input_export branch May 17, 2024 17:53
@gbaned gbaned added this to Assigned Reviewer in PR Queue via automation May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
PR Queue
Assigned Reviewer
Development

Successfully merging this pull request may close these issues.

None yet

4 participants