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

Make jax2tf import conditional #911

Merged
merged 1 commit into from
Sep 18, 2023
Merged

Make jax2tf import conditional #911

merged 1 commit into from
Sep 18, 2023

Conversation

nkovela1
Copy link
Collaborator

@mattdangerw @fchollet
This prevents a hard dependency on JAX by moving the import for JAX2TF into the function where it is used.
Thanks!

Copy link
Member

@mattdangerw mattdangerw left a comment

Choose a reason for hiding this comment

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

Thanks!

@codecov
Copy link

codecov bot commented Sep 18, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (a465816) 76.82% compared to head (02178a9) 76.82%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #911   +/-   ##
=======================================
  Coverage   76.82%   76.82%           
=======================================
  Files         329      329           
  Lines       31427    31427           
  Branches     6112     6112           
=======================================
  Hits        24144    24144           
  Misses       5719     5719           
  Partials     1564     1564           
Flag Coverage Δ
keras_core 76.73% <100.00%> (ø)

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

Files Changed Coverage Δ
keras_core/export/export_lib.py 87.92% <100.00%> (ø)

☔ 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

@fchollet
Copy link
Member

We probably need to start testing that Keras Core can be imported / run without importing any other backend framework than the one being used.

@fchollet fchollet merged commit 176d120 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.

3 participants