(z_generator, batch_size)
return dataloader
Returns an a short iterator that returns a small set of test data.
Returns an a short iterator that returns a small set of test data.
Returns an a short iterator that returns a small set of test data .
def testing_loader(z_generator, batch_size):
    '''
    Returns an a short iterator that returns a small set of test data.
    '''
    z_dataset = zdataset.z_dataset_for_model(
        z_generator, size=1000, seed=global_seed - 1)
    dataloader = torch.utils.data.DataLoader(
            z_dataset,
            batch_size=32, num_workers=2,
            pin_memory=True)
    return dataloader
def testing_loader ( z_generator , batch_size ) : z_dataset = zdataset . z_dataset_for_model ( z_generator , size = 1000 , seed = global_seed - 1 ) dataloader = torch . utils . data . DataLoader ( z_dataset , batch_size = 32 , num_workers = 2 , pin_memory = True ) return dataloader