class_docstr: Tests for discretization layers.
code: def testBitToIntOnes(self):
      x_bit = tf.ones(shape=[1, 3], dtype=tf.float32)
      x_int = 7 * tf.ones(shape=[1], dtype=tf.int32)
      diff = discretization.bit_to_int(x_bit, num_bits=3) - x_int
      d = self.evaluate(diff)
      self.assertEqual(d, 0)
  
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 3 for calling the DiscretizationTest obj's underlying member method code with example usage: obj.testBitToIntOnes() without return types