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



        if epoch % args.eval_every == 0 and epoch != 0:
            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))
Italian Trulli
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: AIRLab-POLIMI/mushroom
Commit Name: 70db49e384a4966d1d3622a1d41d8f4b2d2b53e7
Time: 2021-02-01
Author: boris.ilpossente@hotmail.it
File Name: examples/pendulum_a2c.py
Class Name:
Method Name: experiment


Project Name: dhlab-epfl/dhSegment
Commit Name: 854d78a7d7a60bf464d435a1468db85c573a6cd2
Time: 2018-10-04
Author: seg.benoit@gmail.com
File Name: train.py
Class Name:
Method Name: run