562871e76b2d5adbcd907bcf62ca28c0611e50e1,examples/pytorch/graphsage/experimental/train_dist.py,,run,#Any#Any#Any#,46
Before Change
toc = time.time()
print("Epoch Time(s): {:.4f}".format(toc - tic))
//if epoch % args.eval_every == 0 and epoch != 0:
// eval_acc = evaluate(model, g, g.ndata["features"], g.ndata["labels"], val_nid, args.batch_size, device)
// print("Eval Acc {:.4f}".format(eval_acc))
After Change
start = time.time()
eval_acc = evaluate(model.module, g, g.ndata["features"],
g.ndata["labels"], val_nid, args.batch_size_eval, device)
print("Part {}, Eval Acc {:.4f}, time: {:.4f}".format(g.rank(), eval_acc, time.time() - start))
profiler.stop()
print(profiler.output_text(unicode=True, color=True))
// clean up
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/dgl
Commit Name: 562871e76b2d5adbcd907bcf62ca28c0611e50e1
Time: 2020-07-22
Author: zhengda1936@gmail.com
File Name: examples/pytorch/graphsage/experimental/train_dist.py
Class Name:
Method Name: run
Project Name: PyThaiNLP/pythainlp
Commit Name: b7ff45e0e63da05d2a118f8e050e9b20b9eb0f09
Time: 2018-11-04
Author: arthit@gmail.com
File Name: pythainlp/rank/__init__.py
Class Name:
Method Name:
Project Name: aws/sagemaker-python-sdk
Commit Name: 398f4e8c676f6e89a039fe9bc3205e92a379c1a1
Time: 2019-04-04
Author: mvs.usp@gmail.com
File Name: tests/data/horovod/test_hvd_basic.py
Class Name:
Method Name: