class_docstr: Tests for discretization layers.
code: def testGumbelSoftmaxDiscreteBottleneck(self):
      x = tf.constant([[0, 0.9, 0], [0.8, 0.0, 0.0]], dtype=tf.float32)
      tf.add_to_collection(tf.GraphKeys.GLOBAL_STEP, tf.constant(1))
      (
          x_means_hot,
          _,
      ) = discretization.gumbel_softmax_discrete_bottleneck(
          x, bottleneck_bits=2
      )
      self.evaluate(tf.global_variables_initializer())
      x_means_hot_eval = self.evaluate(x_means_hot)
      self.assertEqual(np.shape(x_means_hot_eval), (2, 4))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.layers import discretization
  from tensor2tensor.utils import test_utils
  import tensorflow.compat.v1
label_desc: Use image node_id 14 for calling the DiscretizationTest obj's underlying member method code with example usage: obj.testGumbelSoftmaxDiscreteBottleneck() without return types