parameters: (intensity)
return_statement: return tf.bitcast(intensity_uint32_shifted, tf.float32)
docstring: Decodes lidar intensity from uint16 to float32.
  
    The given intensity is encoded with _encode_intensity.
  
    Args:
      intensity: A uint16 tensor represents lidar intensity.
  
    Returns:
      Decoded intensity with type as float32.
docstring_summary: Decodes lidar intensity from uint16 to float32.
docstring_tokens: Decodes lidar intensity from uint16 to float32 .
function: def _decode_intensity(intensity):
    """Decodes lidar intensity from uint16 to float32.
  
    The given intensity is encoded with _encode_intensity.
  
    Args:
      intensity: A uint16 tensor represents lidar intensity.
  
    Returns:
      Decoded intensity with type as float32.
    """
    if intensity.dtype != tf.uint16:
      raise TypeError('intensity must be of type uint16')
  
    intensity_uint32 = tf.cast(intensity, dtype=tf.uint32)
    intensity_uint32_shifted = tf.bitwise.left_shift(intensity_uint32, 16)
    return tf.bitcast(intensity_uint32_shifted, tf.float32)
function_tokens: def _decode_intensity ( intensity ) : if intensity . dtype != tf . uint16 : raise TypeError ( 'intensity must be of type uint16' ) intensity_uint32 = tf . cast ( intensity , dtype = tf . uint32 ) intensity_uint32_shifted = tf . bitwise . left_shift ( intensity_uint32 , 16 ) return tf . bitcast ( intensity_uint32_shifted , tf . float32 )