Skip to content

Remove Empty class, which is never used by the empty op. #21368

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

Closed
wants to merge 1 commit into from

Conversation

hertschuh
Copy link
Collaborator

Because ops.numpy.empty has no tensor inputs, only static parameters, it cannot be used as part of functional model.

empty never does the usual if any_symbolic_tensor ... return Empty(...)(...) so the Empty class is dead code.

Because `ops.numpy.empty` has no tensor inputs, only static parameters, it cannot be used as part of functional model.

`empty` never does the usual `if any_symbolic_tensor ... return Empty(...)(...)` so the `Empty` class is dead code.
@codecov-commenter
Copy link

codecov-commenter commented Jun 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.70%. Comparing base (1d0358f) to head (9f4a8cf).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21368      +/-   ##
==========================================
- Coverage   82.70%   82.70%   -0.01%     
==========================================
  Files         565      565              
  Lines       54894    54888       -6     
  Branches     8517     8517              
==========================================
- Hits        45398    45393       -5     
+ Misses       7415     7414       -1     
  Partials     2081     2081              
Flag Coverage Δ
keras 82.50% <ø> (-0.01%) ⬇️
keras-jax 63.57% <ø> (-0.01%) ⬇️
keras-numpy 58.72% <ø> (-0.01%) ⬇️
keras-openvino 33.53% <ø> (-0.01%) ⬇️
keras-tensorflow 63.95% <ø> (-0.01%) ⬇️
keras-torch 63.60% <ø> (-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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hertschuh hertschuh marked this pull request as draft June 9, 2025 22:44
@hertschuh hertschuh closed this Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants