a08eaf2fa930d13967fd78a8ec53069394917ad3,scripts/language_model/word_language_model.py,,evaluate,#Any#Any#Any#Any#,301
Before Change
ntotal = 0
if segment == "val":
model_eval.load_parameters(args.save + ".val", context)
elif segment == "test":
model_eval.load_parameters(args.save, context)
hidden = model_eval.begin_state(batch_size, func=mx.nd.zeros, ctx=context[0])
for i in range(0, len(data_source) - 1, args.bptt):
After Change
total_L = 0.0
ntotal = 0
model_eval.load_parameters(params_file_name, context)
hidden = model_eval.begin_state(batch_size=batch_size, func=mx.nd.zeros, ctx=context[0])
i = 0
while i < len(data_source) - 1 - 1:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/gluon-nlp
Commit Name: a08eaf2fa930d13967fd78a8ec53069394917ad3
Time: 2018-09-18
Author: chgwang@amazon.com
File Name: scripts/language_model/word_language_model.py
Class Name:
Method Name: evaluate
Project Name: dmlc/gluon-cv
Commit Name: 2318052dc79966bf36675606b7d992a347418292
Time: 2019-01-07
Author: cheungchih@gmail.com
File Name: scripts/detection/ssd/train_ssd.py
Class Name:
Method Name:
Project Name: dmlc/dgl
Commit Name: 0f1276372553ac967eae833543ce97bdefe5593c
Time: 2019-08-20
Author: VoVAllen@users.noreply.github.com
File Name: examples/mxnet/gat/train.py
Class Name:
Method Name: main