import math


def round_repeats(depth_coefficient, repeats):
    """ Round number of filters based on depth coefficient.

    Args:
        depth_coefficient: Coefficient to scale number of repeats.
        repeats: Number to repeat mb_conv_block.

    From tensorflow implementation:
    https://github.com/tensorflow/tpu/blob/master/models/official/efficientnet
    /efficientnet_model.py

    """
    return int(math.ceil(depth_coefficient * repeats))