github.com
  
  
    bfarzin/pytorch_aae/blob/master/main_aae.py 17
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision.datasets as dsets
import torchvision.transforms as transforms
from torch.autograd import Variable
from logger import Logger


# MNIST Dataset 
dataset = dsets.MNIST(root='./data', 
                      train=True, 
                      transform=transforms.ToTensor(),  
                      download=True)

# Data Loader (Input Pipeline)
data_loader = torch.utils.data.DataLoader(dataset=dataset, 
                                          batch_size=100, 
                                          shuffle=True)



  This file has been truncated. show original

  
  
    
    
  
  


In this code they use iter. and I want to use another dataset at the same time for my purpose.
When the length of the dataloder is the different(mnist loader:600, schn loader:733), if I reset the iter with mnist loader I’m afraid that I cannot use 133 data from svhn. and not sure the one iter_reset can do the job when use 2 dataset.