Build tensorflow dataset iterator that produce batches with special structure

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Build tensorflow dataset iterator that produce batches with special structure



As I mentioned in the title I need batches with special structure:


1111
5555
2222



Each digit represent feature-vector. So there are N=4 vectors of each classes {1,2,5} (M=3) and batch size is NxM=12.


N=4


{1,2,5}


M=3


NxM=12



To accomplish this task I'm using Tensorflow Dataset API and tfrecords:


M


N



My concern is that I have hundreds (and maybe thousands in the feature) of classes and storing iterator for each class doesn't look good (from memory and performance perspective).



Is there a better way?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Bsbqh,Y7
qyb1ekyPqRRzbXTUF eLE1,3yEQFyx2u82YbO1X 0gNY0DyBUlgvJ0TqDObHVqNwTIt9,nwCYR 5Q6ypzbmyf3C LKi K 7w IGTDZ5W

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results