Skip to main content

Blog

Learn About Our Meetup

5000+ Members

MEETUPS

LEARN, CONNECT, SHARE

Join our meetup, learn, connect, share, and get to know your Toronto AI community. 

JOB POSTINGS

INDEED POSTINGS

Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.

CONTACT

CONNECT WITH US

Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.

[D] How to make padding to max sequence lengths in batch with dataset api?

So i want to pad shorter sequences to max lengths in generated batch so that all sequences are the same length and i can pass it to model.

I find this https://www.tensorflow.org/api_docs/python/tf/data/experimental/bucket_by_sequence_length

But can’t find example of use.

Or maybe i need some another function.

submitted by /u/hadaev
[link] [comments]