Type Square
Namespace tensorflow.contrib.distributions.bijectors
Parent Bijector
Interfaces ISquare
Compute `g(X) = X^2`; X is a positive real number. g is a bijection between the non-negative real numbers (R_+) and the
non-negative real numbers. #### Examples
Show Example
bijector.Square().forward(x=[[1., 0], [2, 1]]) # Result: [[1., 0], [4, 1]], i.e., x^2 bijector.Square().inverse(y=[[1., 4], [9, 1]]) # Result: [[1., 2], [3, 1]], i.e., sqrt(y).