1f720ee453871b2ab764f608926281716ef7bf81,tools/train_pl.py,,,#,340
Before Change
lit = LitModel(opt)
// warning grad_clip_mode is ignored.
trainer = pl.Trainer(
callbacks=[OnEpochStartCallback()],
default_root_dir=opt.checkpoint_path,
resume_from_checkpoint=resume_from,
distributed_backend="ddp",
After Change
// progress_bar_refresh_rate=0,
// fast_dev_run=True,
)
trainer.test(lit)
else:
trainer.fit(lit)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: ruotianluo/ImageCaptioning.pytorch
Commit Name: 1f720ee453871b2ab764f608926281716ef7bf81
Time: 2020-07-05
Author: rluo@ttic.edu
File Name: tools/train_pl.py
Class Name:
Method Name:
Project Name: jiny2001/dcscn-super-resolution
Commit Name: 8d6f6fb8fab89d858a392ae59960f1e894bdefba
Time: 2018-04-17
Author: jin.yamanaka@gmail.com
File Name: train.py
Class Name:
Method Name: train