Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Convert TensorFlow to numpy for plots #28083

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

Merged
merged 3 commits into from
Apr 25, 2024

Conversation

jonas-eschle
Copy link
Contributor

@jonas-eschle jonas-eschle commented Apr 15, 2024

PR summary

as mentioned in #22879 (comment), adding support for TensorFlow tensors to be converted to numpy (equivalent to what was done for JAX and torch in #25887)

Also improved previous handling by using np.asarray and allow the specific subset of arrays (JAX, torch, TF) to also use more efficient methods if desired (see also https://numpy.org/devdocs/user/basics.interoperability.html#using-arbitrary-objects-in-numpy).

PR checklist

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@jonas-eschle
Copy link
Contributor Author

These failures seem to be independent and more fundamental with dependencies, I'll gonna wait them out to be fixed, feel free to review

@tacaswell tacaswell added this to the v3.10.0 milestone Apr 16, 2024
@tacaswell tacaswell requested a review from oscargus April 16, 2024 16:39
@tacaswell
Copy link
Member

yeah, the appveyor failure is unrelated.

@oscargus
Copy link
Member

Thanks!

@oscargus oscargus merged commit a3ccdfb into matplotlib:main Apr 25, 2024
42 of 44 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