-
Notifications
You must be signed in to change notification settings - Fork 251
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
[WIP] Tf.data pipeline #1087
[WIP] Tf.data pipeline #1087
Conversation
2060acb
to
37649cf
Compare
if isinstance(tensor_spec, tf.RaggedTensorSpec): | ||
return tf.ragged.constant(column, dtype=tensor_spec.dtype) | ||
else: | ||
return tf.constant(column, dtype=tensor_spec.dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any docs on how this works? We can just pass arrow arrays into tf.constant
and tensorflow understands arrow? Or is there some other protocol here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.tensorflow.org/tutorials/customization/basics#numpy_compatibility it is not yet clear to me that this is a zero copy operation yet.
Let's digg more in implementation details as follow up? Wanted to get the API spec out for now.
No description provided.