I am trying out the TensorFlow tutorial and don't understand where does next_batch in this line come from?
batch_xs, batch_ys = mnist.train.next_batch(100)
I looked at
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
And didn't see next_batch there either.
Now when trying out next_batch in my own code, I am getting
AttributeError: 'numpy.ndarray' object has no attribute 'next_batch'
So I would like to understand where does next_batch come from?