o
    Qe›  ã                   @   s   ddd„Z dS )é   Nc                 C   sB   |du r|}t |t| |d  ƒ| | ƒ}|d|  k r||7 }|S )aØ  
    This function ensures that all layers have a channel number that is divisible by divisor
    You can also see at https://github.com/keras-team/keras/blob/8ecef127f70db723c158dbe9ed3268b3d610ab55/keras/applications/mobilenet_v2.py#L505

    Args:
        divisor (int): The divisor for number of channels. Default: 8.
        min_value (int, optional): The minimum value of number of channels, if it is None,
                the default is divisor. Default: None.
    Né   gÍÌÌÌÌÌì?)ÚmaxÚint)ÚvZdivisorZ	min_valueÚnew_v© r   úJD:\Projects\ConvertPro\env\Lib\site-packages\paddle/vision/models/utils.pyÚ_make_divisible   s   
r	   )r   N)r	   r   r   r   r   Ú<module>   s   