class_docstr: Compute `g(X) = X ** power`; where X is a non-negative real number.
  
  When `power` is an odd integer, this bijector has domain the whole real line,
  and otherwise is constrained to non-negative numbers.
  
  Note: Powers that are reciprocal of odd integers like `1. / 3` are not
  supported because of numerical precision issues that make this property
  difficult to test. In order to simulate this behavior, we recommend using
  the `Invert` bijector instead (i.e. instead of `tfb.Power(power=1./3)`
  use `tfb.Invert(tfb.Power(power=3.))`).
class_docstr_tok: ["Compute","`","g","(","X",")","=","X","*","*","power","`",";","where","X","is","a","non-negative","real","number",".","When","`","power","`","is","an","odd","integer",",","this","bijector","has","domain","the","whole","real","line",",","and","otherwise","is","constrained","to","non-negative","numbers",".","Note",":","Powers","that","are","reciprocal","of","odd","integers","like","`","1",".","\/","3","`","are","not","supported","because","of","numerical","precision","issues","that","make","this","property","difficult","to","test",".","In","order","to","simulate","this","behavior",",","we","recommend","using","the","`","Invert","`","bijector","instead","(","i.e",".","instead","of","`","tfb.Power","(","power=1.\/3",")","`","use","`","tfb.Invert","(","tfb.Power","(","power=3",".",")",")","`",")","."]
code: def _assertions(self, t, power=None):
      if not self.validate_args:
          return []
      power = (
          power
          if power is not None
          else tf.convert_to_tensor(self.power)
      )
      return [
          tf.debugging.Assert(
              tf.reduce_all((t >= 0.0) | _is_odd_integer(power)),
              [
                  "Elements must be non-negative, except for odd-integer powers."
              ],
          )
      ]
  
file_path: probability/tensorflow_probability/python/bijectors/power.py
imports: import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import parameter_properties
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
label_desc: Use image node_id 8 for calling the Power obj's underlying member method code with example usage: obj._assertions(t, power) and returns: list, list