class_docstr: Python test for quantization ops.
class_docstr_tok: ["Python","test","for","quantization","ops","."]
code: def test_identical_seed_yields_identical_output(self):
      values = tf.random.uniform(
          (100,), -100.0, 100.0, dtype=tf.float32
      )
      rounded1 = gen_ops.stochastic_round(values, 1.0, (123, 456))
      self.assertEqual(rounded1.dtype, tf.int32)
      rounded2 = gen_ops.stochastic_round(values, 1.0, (123, 456))
      self.assertEqual(rounded2.dtype, tf.int32)
      rounded3 = gen_ops.stochastic_round(values, 1.0, (456, 789))
      self.assertEqual(rounded3.dtype, tf.int32)
      self.assertAllEqual(rounded1, rounded2)
      self.assertNotAllEqual(rounded1, rounded3)
  
file_path: compression/tensorflow_compression/python/ops/quantization_ops_test.py
imports: import time
  from absl.testing import parameterized
  import tensorflow
  from tensorflow_compression.python.ops import gen_ops
label_desc: Use image node_id 2 for calling the QuantizationOpsTest obj's underlying member method code with example usage: obj.test_identical_seed_yields_identical_output() without return types