Skip to content

Commit

Permalink
Fix comments and logger name in validate.py (facebookresearch#1061)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: fairinternal/fairseq-py#1061

Differential Revision: D20238796

Pulled By: myleott

fbshipit-source-id: cf48bd7f6cdae05e91868a9d2efd91dc8e72bb12
  • Loading branch information
Myle Ott authored and facebook-github-bot committed Mar 4, 2020
1 parent 6a4ad33 commit 077c351
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fairseq_cli/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
level=logging.INFO,
stream=sys.stdout,
)
logger = logging.getLogger('fairseq_cli.train')
logger = logging.getLogger('fairseq_cli.validate')


def main(args, override_args=None):
Expand Down Expand Up @@ -59,7 +59,6 @@ def main(args, override_args=None):
criterion = task.build_criterion(model_args)
criterion.eval()

# Load valid dataset (we load training data below, based on the latest checkpoint)
for subset in args.valid_subset.split(','):
try:
task.load_dataset(subset, combine=False, epoch=0)
Expand Down

0 comments on commit 077c351

Please sign in to comment.