'Generate a few samples using the naive method and
perform sanity checks on the output.'

def testGenerateSimple(self):

    waveform = tf.placeholder(tf.int32)
    np.random.seed(0)
    data = np.random.randint(128, size=1000)
    proba = self.net.predict_proba(waveform)
    with self.test_session() as sess:
        sess.run(tf.global_variables_initializer())
        proba = sess.run(proba, feed_dict={waveform: data})
    self.assertAllEqual(proba.shape, [128])
    self.assertTrue(np.all(((proba >= 0) & (proba <= (128 - 1)))))
