class_docstr: Continuous density function + round.
class_docstr_tok: ["Continuous","density","function","+","round","."]
code: def inverse_transform(self, y):
      # Let f(x) = round(x)
      # Then g(y) = inverse_transform(y) is defined as
      # g(y) := inf_x { x : f(x) >= y }
      # For f = round, we have
      #     round(x) >= y
      # <=> round(x) >= ceil(y)
      # so g(y) = inf_x { x: round(x) >= ceil(y) }
      #         = ceil(y)-0.5
  
      # Alternative derivation:
      # P( round(x) <= y )
      # = P( round(x) <= floor(y) )
      # = P( x <= floor(y)+0.5 )
      # = P( x <= ceil(y)-0.5 )
      # = P( x <= inverse_transform(y) )
      return tf.math.ceil(y) - 0.5
  
imports: import tensorflow
  import tensorflow_probability
  from tensorflow_compression.python.distributions import deep_factorized
  from tensorflow_compression.python.distributions import helpers
  from tensorflow_compression.python.distributions import uniform_noise
  from tensorflow_compression.python.ops import round_ops
label_desc: Use image node_id 2 for calling the RoundAdapter obj's underlying member method code with example usage: obj.inverse_transform(y) and returns: unknown