def _scale_enum(anchor, scales):
    """
    Enumerate a set of anchors for each scale wrt an anchor.
    """

    width, height, x_ctr, y_ctr = _whctrs(anchor)
    widths = width * scales
    heights = height * scales
    anchors = _mkanchors(widths, heights, x_ctr, y_ctr)
    return anchors

    Enumerate a set of anchors for each scale wrt an anchor.
    
python/aitemplate/frontend/nn/proposal.py