(data_len, batch_size)
Return iteration indices
Return iteration indices
Return iteration indices
def data_iter_indices(data_len, batch_size):
    """
    Return iteration indices
    """
    epoch_size = data_len // batch_size
    
    for _ in range(epoch_size):
        indices = np.random.choice(data_len, batch_size)
        yield indices
def data_iter_indices ( data_len , batch_size ) : epoch_size = data_len // batch_size for _ in range ( epoch_size ) : indices = np . random . choice ( data_len , batch_size ) yield indices