class_docstr: Applies a differentiable approximation of rounding.
code: def __init__(self, alpha=5.0, inverse=False, **kwargs):
      super().__init__(**kwargs)
      self._alpha = alpha
      if inverse:
          self._transform = round_ops.soft_round_inverse
      else:
          self._transform = round_ops.soft_round
  
file_path: compression/tensorflow_compression/python/layers/soft_round.py
imports: import tensorflow
  from tensorflow_compression.python.ops import round_ops
label_desc: Use image node_id 1 to create a new SoftRound object from inherited base classes: tf.keras.layers with example: obj = SoftRound(alpha, inverse)