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 reference to nonexistent namespace in error message #20810

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

jurca
Copy link
Contributor

@jurca jurca commented Jan 24, 2025

The error message produced when using, for example, a tensorflow math operation in a layer referenced a nonexistent keras.operations namespace (which makes fixing the issue a lot more difficult for newcomers, given that they will encounter it while following examples from the book Deep Learning with Python, 2nd edition).

The correct name of the implied namespace is keras.ops.

The error message produced when using, for example, a tensorflow math
operation in a layer referenced a nonexistent keras.operations namespace
(which makes fixing the issue a lot more difficult for newcomers, given
that they will encounter it while following examples from the book Deep
Learning with Python, 2nd edition). The correct name of the implied
namespace is keras.ops.
Copy link

google-cla bot commented Jan 24, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.01%. Comparing base (592c118) to head (795316f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #20810   +/-   ##
=======================================
  Coverage   82.01%   82.01%           
=======================================
  Files         557      557           
  Lines       52019    52019           
  Branches     8038     8038           
=======================================
  Hits        42664    42664           
  Misses       7402     7402           
  Partials     1953     1953           
Flag Coverage Δ
keras 81.83% <ø> (ø)
keras-jax 64.23% <ø> (ø)
keras-numpy 58.96% <ø> (ø)
keras-openvino 29.89% <ø> (ø)
keras-tensorflow 64.79% <ø> (ø)
keras-torch 64.16% <ø> (ø)

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
Collaborator

@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, thanks for the fix

@google-ml-butler google-ml-butler bot added kokoro:force-run ready to pull Ready to be merged into the codebase labels Jan 24, 2025
@fchollet fchollet merged commit 6097d53 into keras-team:master Jan 24, 2025
8 checks passed
@google-ml-butler google-ml-butler bot removed ready to pull Ready to be merged into the codebase kokoro:force-run labels Jan 24, 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.

4 participants