Let's strengthen our understanding of GANs by building them to generate handwritten digits in TensorFlow. You can also check the complete code used in this section here at http://bit.ly/2wwBvRU.
First, we will import all the necessary libraries:
import warnings
warnings.filterwarnings('ignore')
import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
tf.logging.set_verbosity(tf.logging.ERROR)
import matplotlib.pyplot as plt
%matplotlib inline
tf.reset_default_graph()