Next, we define the label arrays to be used for the training and evaluation images, by calling the make_labels() function, and using the appropriate batch dimension. This will return us arrays with the labels 1 and 0 for each instance of the training and evaluation image:
# labels for the batch size and the test size y_train_real, y_train_fake = make_labels(batch_size) y_eval_real, y_eval_fake = make_labels(eval_size)