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

Feature Request: Support sparse to dense with max_length input #43490

Open
chenghuige opened this issue Sep 23, 2020 · 0 comments
Open

Feature Request: Support sparse to dense with max_length input #43490

chenghuige opened this issue Sep 23, 2020 · 0 comments
Assignees
Labels
comp:ops OPs related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower type:feature Feature requests

Comments

@chenghuige
Copy link

Using tensorflow 2.3, some times I found I need tfrecords with tf.io.VarlenFeature, but when using tpu or for some other reasons you might need to pad it to fixed max_length like 50, 200(fixed) not just using padded_batch or tf.sparse.to_dense to padd it to the max length in the batch(dynamic).

It is ok if you pre padding to max_length when generating tfrecords but that is wasting space and also reduce flexbilty.

I'd like padded_batch(x, max_length), tf.sparse.to_dense(x, max_length) or just set tf.io.VarlenFeature(max_length).

Will this feature be possible ? Thanks!

@chenghuige chenghuige added the type:feature Feature requests label Sep 23, 2020
@ravikyram ravikyram added the comp:ops OPs related issues label Sep 23, 2020
@jvishnuvardhan jvishnuvardhan added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:ops OPs related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower type:feature Feature requests
Projects
None yet
Development

No branches or pull requests

3 participants