117dd25204611382acc7c9f460aeeb3a023ef721,new-tutorial/L4_message_passing.py,,,#,192

Before Change



with tqdm.tqdm(train_dataloader) as tq:
    for step, (input_nodes, output_nodes, bipartites) in enumerate(tq):
        bipartites = [b.to(torch.device("cuda")) for b in bipartites]
        inputs = node_features[input_nodes].cuda()
        labels = node_labels[output_nodes].cuda()
        predictions = model(bipartites, inputs)

After Change



with tqdm.tqdm(train_dataloader) as tq:
    for step, (input_nodes, output_nodes, bipartites) in enumerate(tq):
        inputs = bipartites[0].srcdata["feat"]
        labels = bipartites[-1].dstdata["label"]
        predictions = model(bipartites, inputs)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/dgl
Commit Name: 117dd25204611382acc7c9f460aeeb3a023ef721
Time: 2021-02-08
Author: coin2028@hotmail.com
File Name: new-tutorial/L4_message_passing.py
Class Name:
Method Name:


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 4f61d8db82062a3dc8e267c02bf60fb12fabcf3a
Time: 2020-06-09
Author: M.N.Tran@ibm.com
File Name: art/estimators/object_detection/TensorFlowFasterRCNN.py
Class Name: PyTorchFasterRCNN
Method Name: __init__


Project Name: dmlc/dgl
Commit Name: 117dd25204611382acc7c9f460aeeb3a023ef721
Time: 2021-02-08
Author: coin2028@hotmail.com
File Name: new-tutorial/L1_large_node_classification.py
Class Name:
Method Name: