Merge pull request #150 from littletomatodonkey/fix_fetch

fix effnet train fetch
This commit is contained in:
littletomatodonkey 2020-06-08 18:24:02 +08:00 committed by GitHub
commit 38ad51ca0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ def main(args):
if config.validate and epoch_id % config.valid_interval == 0:
if config.get('use_ema'):
logger.info(logger.coloring("EMA validate start..."))
with train_fetchs('ema').apply(exe):
with ema.apply(exe):
top1_acc = program.run(valid_dataloader, exe,
compiled_valid_prog,
valid_fetchs, epoch_id, 'valid')