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

Refactor merging layers tests as parametrized tests. #913

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

hertschuh
Copy link
Collaborator

They are almost identical for every merging layer.

This simplifies adding tests that apply to every layer. This is in preparation for adding sparse tensors support.

@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.01% 🎉

Comparison is base (f38e2e6) 83.62% compared to head (b6143c4) 83.63%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #913      +/-   ##
==========================================
+ Coverage   83.62%   83.63%   +0.01%     
==========================================
  Files         318      318              
  Lines       28391    28391              
  Branches     5409     5409              
==========================================
+ Hits        23741    23745       +4     
+ Misses       3150     3147       -3     
+ Partials     1500     1499       -1     
Flag Coverage Δ
keras_core 83.52% <ø> (+0.01%) ⬆️
keras_core-jax 67.59% <ø> (+0.01%) ⬆️
keras_core-numpy 60.73% <ø> (ø)
keras_core-tensorflow 67.08% <ø> (+0.01%) ⬆️
keras_core-torch 69.44% <ø> (+0.01%) ⬆️

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

see 1 file with indirect coverage changes

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

They are almost identical for every merging layer.

This simplifies adding tests that apply to every layer. This is in preparation for adding sparse tensors support.
Copy link
Contributor

@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.

Nice code savings! LGTM

@fchollet fchollet merged commit b4019bc into keras-team:main Sep 18, 2023
8 checks passed
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.

2 participants