o

    h                     @   s   dddZ d S )N?c                 C   sB   |du r|}t |t| |d  | | }|||  k r||7 }|S )an  Make divisible function.

    This function rounds the channel number down to the nearest value that can
    be divisible by the divisor.

    Args:
        value (int): The original channel number.
        divisor (int): The divisor to fully divide the channel number.
        min_value (int, optional): The minimum value of the output channel.
            Default: None, means that the minimum value equal to the divisor.
        min_ratio (float): The minimum ratio of the rounded channel
            number to the original channel number. Default: 0.9.
    Returns:
        int: The modified output channel number
    N   )maxint)valuedivisor	min_value	min_ratio	new_value r
   8/root/Awesome-Backbones/configs/common/make_divisible.pymake_divisible   s   r   )Nr   )r   r
   r
   r
   r   <module>   s   