TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfg.geometry.transformation.quaternion.normalized_random_uniform

Random normalized quaternion following a uniform distribution law on SO(3).

tfg.geometry.transformation.quaternion.normalized_random_uniform(
    quaternion_shape,
    name=None
)

Defined in geometry/transformation/quaternion.py.

Args:

  • quaternion_shape: A list representing the shape of the output tensor.
  • name: A name for this op that defaults to "quaternion_normalized_random_uniform".

Returns:

A tensor of shape [quaternion_shape[0],...,quaternion_shape[-1], 4] representing random normalized quaternions.