mirror of
https://github.com/facebookresearch/fairseq.git
synced 2024-08-16 20:10:40 +03:00
Fix comments and logger name in validate.py (#1061)
Summary: Pull Request resolved: https://github.com/fairinternal/fairseq-py/pull/1061 Differential Revision: D20238796 Pulled By: myleott fbshipit-source-id: cf48bd7f6cdae05e91868a9d2efd91dc8e72bb12
This commit is contained in:
parent
6a4ad3327a
commit
077c351d7e
@ -19,7 +19,7 @@ logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
stream=sys.stdout,
|
||||
)
|
||||
logger = logging.getLogger('fairseq_cli.train')
|
||||
logger = logging.getLogger('fairseq_cli.validate')
|
||||
|
||||
|
||||
def main(args, override_args=None):
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user