WeightedRandomSampler

    通过制定的权重随机采样,采样下标范围在 , 如果 为 ,则下标可被采样多次

    参数:

    返回类型: WeightedRandomSampler

    代码示例