I have tried to use tensorboard to visualize a model. I was following the pytorch.org tutorial. Here is the code for dataloader.
writer_train = SummaryWriter('runs/training')
train_loader = torch.utils.data.DataLoader(train_dataset, batch_size=config.train_batch_size, shuffle=True,
num_workers=config.num_workers, pin_memory=True)
images, labels = next(iter(train_loader))
writer_train.graph_model(light_net, images)
and I got this error in the iter line.
images, labels = next(iter(train_loader)) ValueError: too many values to unpack (expected 2)

iter(train_loader).next(). - iacob