tfg.math.math_helpers.square_to_spherical_coordinates

Maps points from a unit square to a unit sphere.

In the following, A1 to An are optional batch dimensions.

point_2d A tensor of shape [A1, ..., An, 2] with values in [0,1].
name A name for this op. Defaults to "math_square_to_spherical_coordinates".

A tensor of shape [A1, ..., An, 2] with [..., 0] having values in [0.0, pi] and [..., 1] with values in [0.0, 2pi].

ValueError if the shape of point_2d is not supported.
InvalidArgumentError if at least an element of point_2d is outside of [0,1].