Skip to content

Commit

Permalink
train doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxThFe committed Sep 1, 2022
1 parent c22db87 commit 7b528b8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified data/__pycache__/cycles.cpython-310.pyc
Binary file not shown.
Binary file modified decoder/__pycache__/utils.cpython-310.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import datetime
import time
import tqdm
from tqdm import tqdm

import torch
from torch.optim import Adam
Expand Down Expand Up @@ -60,6 +60,7 @@ def main(opts):
batch_count += 1

if batch_count % opts['batch_size'] == 0:
print('\n')
printer.update(epoch + 1, {'averaged_loss': batch_loss/opts['batch_size']})

if opts['clip_grad']:
Expand Down

0 comments on commit 7b528b8

Please sign in to comment.