fe7d5e9b8bd221685749146e9b42cd44f912891c,examples/mxnet/sampling/dis_sampling/gcn_trainer.py,,main,#Any#,113

Before Change



    // initialize graph
    dur = []
    total_count = 153
    for epoch in range(args.n_epochs):
        for subg_count in range(total_count):
            print(subg_count)
            nf = receiver.recv(g)
            nf.copy_from_parent()
            // forward
            with mx.autograd.record():
                pred = model(nf)

After Change


    for epoch in range(args.n_epochs):
        idx = 0
        for nf in sampler:
            print("epoch: %d, subgraph: %d" %(epoch, idx))
            idx += 1
            nf.copy_from_parent()
            // forward
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/dgl
Commit Name: fe7d5e9b8bd221685749146e9b42cd44f912891c
Time: 2019-04-21
Author: mctt90@gmail.com
File Name: examples/mxnet/sampling/dis_sampling/gcn_trainer.py
Class Name:
Method Name: main


Project Name: Ambrosys/glyph
Commit Name: ffa0db4fdca9cef31a72b35a1f7eef78733f5b0c
Time: 2017-02-24
Author: mquade@uni-potsdam.de
File Name: glyph/cli/glyph_remote.py
Class Name: RemoteAssessmentRunner
Method Name: evaluate_single


Project Name: flow-project/flow
Commit Name: 3f5718f8e40fa7207c7b547f3875f0076813e2b4
Time: 2019-01-09
Author: akreidieh@gmail.com
File Name: flow/utils/aimsun/run.py
Class Name:
Method Name: threaded_client