ac932c665b0a06ea9e222136351f52b5d6772ed0,examples/pytorch/jtnn/jtnn/mpn.py,DGLMPN,forward,#DGLMPN#Any#,128

Before Change



        mol_graph = self.run(mol_graph, mol_line_graph)
        mol_graph_list = unbatch(mol_graph)
        g_repr = torch.stack([g.get_n_repr()["h"].mean(0) for g in mol_graph_list], 0)

        self.n_samples_total += n_samples
        self.n_nodes_total += n_nodes
        self.n_edges_total += n_edges

After Change



        mol_line_graph = mol_graph.line_graph(backtracking=False, shared=True)

        n_nodes = mol_graph.number_of_nodes()
        n_edges = mol_graph.number_of_edges()

        mol_graph = self.run(mol_graph, mol_line_graph)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/dgl
Commit Name: ac932c665b0a06ea9e222136351f52b5d6772ed0
Time: 2018-12-02
Author: coin2028@hotmail.com
File Name: examples/pytorch/jtnn/jtnn/mpn.py
Class Name: DGLMPN
Method Name: forward


Project Name: dmlc/dgl
Commit Name: ac932c665b0a06ea9e222136351f52b5d6772ed0
Time: 2018-12-02
Author: coin2028@hotmail.com
File Name: examples/pytorch/jtnn/jtnn/jtnn_vae.py
Class Name: DGLJTNNVAE
Method Name: encode


Project Name: rusty1s/pytorch_geometric
Commit Name: b2002a8ef80ecbecee09fd61b910c987648455c7
Time: 2020-08-26
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/datasets/karate.py
Class Name: KarateClub
Method Name: __init__