import tensorflow as tf

    # Usually we'd write np.float(X) here, but a recent Eager bug would
    # erroneously coerce the value to float32 anyway. We therefore use constants
    # here, until the bug is resolved in TensorFlow 1.12.
    normal = tfd.Normal(loc=tf.constant(0, tf.float16),
                        scale=tf.constant(1, tf.float16))
    self.assertEqual(
