What is use of function mnist.train.next_batch() in training dataset?
The function sample batch_size number of samples from a shuffled training dataset, then return the batch for training.
You could write your own next_batch() method that does the same thing, or modify it as you wish. Then use it similarly when you're training your model.
I am using TensorFlow for training my own dataset using capsule network. While training mnist dataset, it contains function mnist.train.next_batch(batch size). How to replace this function for training own dataset using TensorFlow?