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

multivalue feature columns: dataset.batch report different shape #3

Open
advancera opened this issue Oct 31, 2018 · 0 comments
Open

Comments

@advancera
Copy link

when i use multivalue feature, such as [['a', 'b', 'c'], ['a', 'b']].
the program will report bug like: cannot batch elements of different shape. element 0 has shape [3], but element 1 has shape [2].
i know the different shape of multivalue feature result in this bug.
i think the function Dataset.padded_batch maybe solve the problem, i write like dataset = dataset.padded_batch(5, padded_shapes=[None]), it reported bug TypeError: If shallow structure is a sequence, input must also be a sequence. Input has type: list
so, how can i process the multivalue exactly?
i am eager to solve this problem, can anyboby help me? thanks a lot!

@advancera advancera reopened this Jan 17, 2019
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

No branches or pull requests

1 participant