We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 943a5dd commit 27336eeCopy full SHA for 27336ee
train.py
@@ -29,7 +29,7 @@
29
30
# 4. Tensorboard
31
writer = torch.utils.tensorboard.SummaryWriter(os.path.join('runs', config['model']))
32
- writer.add_graph(model, trainloader.__iter__().__next__()[0].to(device))
+ writer.add_graph(model, trainloader.__iter__().__next__()[0][:2].to(device))
33
34
# 5. Train and evaluate
35
log_loss = tqdm.tqdm(total=0, position=2, bar_format='{desc}', leave=False)
0 commit comments