First, we will load the Python modules; in this case, the TensorFlow package and the hyperparameters that we defined previously:
import tensorflow as tfimport hy_param
Then, we define the placeholders that we will be using to input data into the model. tf.placeholder allows us to feed input data to the computational graph. We can define constraints with the shape of the placeholder to only accept a tensor of a certain shape. Note that it is common to provide None for the first dimension, which allows us to the size of the batch at runtime.