0a8e27413d721bf8d753e5e6061cc24f5bf6474f,train.py,,__train_step,#,600
Before Change
writer.add_scalar("gradient norm", grad_norm, step)
writer.add_scalar("learning rate", current_lr, step)
return loss.data[0]
def train_loop(model, data_loaders, optimizer, writer, checkpoint_dir=None):
if use_cuda:
After Change
writer.add_scalar("gradient norm", grad_norm, step)
writer.add_scalar("learning rate", current_lr, step)
return loss.item()
def train_loop(device, model, data_loaders, optimizer, writer, checkpoint_dir=None):
if is_mulaw_quantize(hparams.input_type):
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 5
Instances
Project Name: r9y9/wavenet_vocoder
Commit Name: 0a8e27413d721bf8d753e5e6061cc24f5bf6474f
Time: 2018-05-04
Author: zryuichi@gmail.com
File Name: train.py
Class Name:
Method Name: __train_step
Project Name: thunlp/OpenKE
Commit Name: 28747bac0c5d54e5e9429f2c376bf6d82d40accf
Time: 2019-01-12
Author: dschaehi@gmail.com
File Name: config/Config.py
Class Name: Config
Method Name: train_one_step
Project Name: vinhkhuc/PyTorch-Mini-Tutorials
Commit Name: 73260e319a82fbc14e8984962f903838ffdf13dc
Time: 2018-10-03
Author: knvinh@gmail.com
File Name: 1_linear_regression.py
Class Name:
Method Name: train
Project Name: vinhkhuc/PyTorch-Mini-Tutorials
Commit Name: 9afc6a74f31f0ccc8d557feb49e9b5f2d255563c
Time: 2018-10-05
Author: knvinh@gmail.com
File Name: 2_logistic_regression.py
Class Name:
Method Name: train
Project Name: vinhkhuc/PyTorch-Mini-Tutorials
Commit Name: 9afc6a74f31f0ccc8d557feb49e9b5f2d255563c
Time: 2018-10-05
Author: knvinh@gmail.com
File Name: 5_convolutional_net.py
Class Name:
Method Name: train
Project Name: vinhkhuc/PyTorch-Mini-Tutorials
Commit Name: 9afc6a74f31f0ccc8d557feb49e9b5f2d255563c
Time: 2018-10-05
Author: knvinh@gmail.com
File Name: 4_modern_neural_net.py
Class Name:
Method Name: train
Project Name: vinhkhuc/PyTorch-Mini-Tutorials
Commit Name: 9afc6a74f31f0ccc8d557feb49e9b5f2d255563c
Time: 2018-10-05
Author: knvinh@gmail.com
File Name: 6_lstm.py
Class Name:
Method Name: train
Project Name: vinhkhuc/PyTorch-Mini-Tutorials
Commit Name: 9afc6a74f31f0ccc8d557feb49e9b5f2d255563c
Time: 2018-10-05
Author: knvinh@gmail.com
File Name: 3_neural_net.py
Class Name:
Method Name: train