def get_ad_lengths_in_frames(ads_features):
    """
    Self-explainatory
    :param ads_features: has dimension [ad_idx, ad_frame_idx, feature_idx]
    :return: Ad length in frames
    """
    ad_lengths_in_frames = []
    for ad_features in ads_features:
        ad_lengths_in_frames.append(ad_features.shape[0])
    return ad_lengths_in_frames