-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(handlers): add common training handlers template (#26)
* feat(handlers): add common training handlers template * extract each section into function, include template in main.py * fix: add to_save, string quote, trainer * chore: common training handlers default value
- Loading branch information
Jeff Yang
committed
Mar 26, 2021
1 parent
9b7d661
commit 5b2cbae
Showing
11 changed files
with
223 additions
and
646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from ignite.contrib.engines import common | ||
{% if setup_common_training_handlers %} | ||
common.setup_common_training_handlers( | ||
trainer=trainer, | ||
train_sampler=None, | ||
to_save=to_save, | ||
output_path='{{ output_path }}', | ||
save_every_iters={{ save_every_iters }}, | ||
n_saved={{ n_saved }}, | ||
log_every_iters={{ log_every_iters }}, | ||
with_pbars={{ with_pbars }}, | ||
with_pbar_on_iters={{ with_pbar_on_iters }}, | ||
stop_on_nan={{ stop_on_nan }}, | ||
clear_cuda_cache={{ clear_cuda_cache }}, | ||
lr_scheduler=None, | ||
with_gpu_stats=False, | ||
output_names=None, | ||
) | ||
{% endif %} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.