Unverified Commit 615f8144 authored by Gao, Xiang's avatar Gao, Xiang Committed by GitHub
Browse files

Allow aev cache in command line (#94)

parent 7c597a39
......@@ -26,9 +26,12 @@ if __name__ == '__main__':
parser.add_argument('--tensorboard',
help='Directory to store tensorboard log files',
default=None)
parser.add_argument('--cache-aev', dest='cache_aev', action='store_true',
help='Whether to cache AEV', default=None)
parser = parser.parse_args()
d = torch.device(parser.device)
trainer = Trainer(parser.config_path, d, parser.tqdm, parser.tensorboard)
trainer = Trainer(parser.config_path, d, parser.tqdm, parser.tensorboard,
parser.cache_aev)
trainer.load_data(parser.training_path, parser.validation_path)
trainer.run()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment