a6d69cefe0727bc9d29c2308519a422c69f30739,train.py,,main,#Any#,30
Before Change
// Set optimizer
// optimizer = torch.optim.Adam(filter(lambda p: p.requires_grad, model.parameters()))
optimizer = torch.optim.SGD(filter(lambda p: p.requires_grad, model.parameters()), lr=1e-3,
momentum=.9, weight_decay=5e-4, nesterov=True)
start_epoch = checkpoint["epoch"] + 1
if checkpoint["optimizer"] is not None:
optimizer.load_state_dict(checkpoint["optimizer"])
After Change
// p.requires_grad = False
// Set optimizer
optimizer = torch.optim.Adam(filter(lambda p: p.requires_grad, model.parameters()))
// optimizer = torch.optim.SGD(filter(lambda p: p.requires_grad, model.parameters()), lr=1e-3, momentum=.9, weight_decay=5e-4, nesterov=True)
start_epoch = checkpoint["epoch"] + 1
if checkpoint["optimizer"] is not None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: ultralytics/yolov3
Commit Name: a6d69cefe0727bc9d29c2308519a422c69f30739
Time: 2018-11-08
Author: glenn.jocher@ultralytics.com
File Name: train.py
Class Name:
Method Name: main
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: ff796fb6a5d3cb90e7f5630de4a7437fb8d0b367
Time: 2017-11-10
Author: bodo.rueckauer@gmail.com
File Name: scripts/ann_architectures/mnist/mlp.py
Class Name:
Method Name:
Project Name: mozilla/TTS
Commit Name: 40f1a3d3a514a24d7b8b9005410b860168401d11
Time: 2018-05-15
Author: egolge@mozilla.com
File Name: train.py
Class Name:
Method Name: main