parameters: (yaw, name=None)
docstring: Gets a rotation matrix given yaw only.
  
    Args:
      yaw: x-rotation in radians. This tensor can be any shape except an empty
        one.
      name: the op name.
  
    Returns:
      A rotation tensor with the same data type of the input. Its shape is
        [input_shape, 3 ,3].
docstring_summary: Gets a rotation matrix given yaw only.
docstring_tokens: Gets a rotation matrix given yaw only .
function: def get_yaw_rotation(yaw, name=None):
    """Gets a rotation matrix given yaw only.
  
    Args:
      yaw: x-rotation in radians. This tensor can be any shape except an empty
        one.
      name: the op name.
  
    Returns:
      A rotation tensor with the same data type of the input. Its shape is
        [input_shape, 3 ,3].
    """
    with tf.compat.v1.name_scope(name, 'GetYawRotation', [yaw]):
      cos_yaw = tf.cos(yaw)
      sin_yaw = tf.sin(yaw)
      ones = tf.ones_like(yaw)
      zeros = tf.zeros_like(yaw)
  
      return tf.stack([
          tf.stack([cos_yaw, -1.0 * sin_yaw, zeros], axis=-1),
          tf.stack([sin_yaw, cos_yaw, zeros], axis=-1),
          tf.stack([zeros, zeros, ones], axis=-1),
      ],
                      axis=-2)
function_tokens: def get_yaw_rotation ( yaw , name = None ) : with tf . compat . v1 . name_scope ( name , 'GetYawRotation' , [ yaw ] ) : cos_yaw = tf . cos ( yaw ) sin_yaw = tf . sin ( yaw ) ones = tf . ones_like ( yaw ) zeros = tf . zeros_like ( yaw ) return tf . stack ( [ tf . stack ( [ cos_yaw , - 1.0 * sin_yaw , zeros ] , axis = - 1 ) , tf . stack ( [ sin_yaw , cos_yaw , zeros ] , axis = - 1 ) , tf . stack ( [ zeros , zeros , ones ] , axis = - 1 ) , ] , axis = - 2 )