towhee.models.utils.round_width.round_width

towhee.models.utils.round_width.round_width(width, multiplier, min_width=8, divisor=8, ceil=False)[source]

Round width of filters based on width multiplier :param width: The channel dimensions of the input. :type width: ‘int’ :param multiplier: The multiplication factor. :type multiplier: ‘float’ :param min_width: The minimum width after multiplication. :type min_width: ‘int’ :param divisor: The new width should be dividable by divisor. :type divisor: ‘int’ :param ceil: If True, use ceiling as the rounding method. :type ceil: ‘bool’