# Create auxiliary vector for layer 4 d4 = np.random.rand(a4.shape[0], a3.shape[1]) < keep_prob