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

[Plugin] TypeTransformers for Numpy array, PyTorch and TensorFlow tensors #2544

Closed
5 of 6 tasks
samhita-alla opened this issue May 25, 2022 · 4 comments
Closed
5 of 6 tasks
Assignees
Labels
plugins Plugins related labels (backend or frontend)

Comments

@samhita-alla
Copy link
Contributor

samhita-alla commented May 25, 2022

Since a majority of Flyte users work on ML, it'd be helpful to have Numpy arrays, PyTorch and Tensorflow tensors as Flyte types.

Related Slack conversation:

I am looking for a way to pass Numpy Arrays (ndarray) and PyTorch/Tensorflow Tensors as Flyte Task input/output. I haven’t come across any example yet. I’m aware of the native support for Dataframes. It seems inefficient to convert ndarray/Tensors back and forth using Dataframes.
How are folks handling this?

https://flyte-org.slack.com/archives/CNMKCU6FR/p1653071185574619

TODO

@samhita-alla samhita-alla self-assigned this May 25, 2022
@badarahmed
Copy link

Thanks for opening the issue!

@sbrunk
Copy link
Member

sbrunk commented May 25, 2022

Numpy has a relatively stable representation for serialization on disk: https://github.com/numpy/numpy/blob/main/doc/neps/nep-0001-npy-format.rst

@samhita-alla
Copy link
Contributor Author

samhita-alla commented May 26, 2022

Numpy has a relatively stable representation for serialization on disk: https://github.com/numpy/numpy/blob/main/doc/neps/nep-0001-npy-format.rst

Looks promising!

@cosmicBboy
Copy link
Contributor

fixed by #1032

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugins Plugins related labels (backend or frontend)
Projects
None yet
Development

No branches or pull requests

4 participants