The imports are shared among all inference experiments:
import matplotlib
matplotlib.use("Agg")
import matplotlib.pylab as plt
import numpy as np
from utils import get_data, iterate_minibatches, load_model
In the following subsections, we are going to sample our generator in four different manners. We are going to leverage the validation set to collect text embeddings.