f766c92a63fb67a99744dcb82c8c78406fbf905a,deepchem/models/torch_models/gat.py,GAT,forward,#GAT#Any#,113

Before Change


      or `(batch_size, n_classes)` (n_tasks == 1) and the output values are probabilities of each class label.
    
    node_feat, edge_index = data.x, data.edge_index
    node_feat = self.embedding(node_feat)

    // convolutional layer
    for conv in self.conv_layers:
      node_feat = conv(node_feat, edge_index)

After Change


            This is only returned when self.mode = "classification", the output consists of the
            logits for classes before softmax.
        
    node_feats = g.ndata[self.nfeat_name]
    out = self.model(g, node_feats)

    if self.mode == "classification":
      if self.n_tasks == 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepchem/deepchem
Commit Name: f766c92a63fb67a99744dcb82c8c78406fbf905a
Time: 2020-11-04
Author: mufeili1996@gmail.com
File Name: deepchem/models/torch_models/gat.py
Class Name: GAT
Method Name: forward


Project Name: stanfordnlp/stanza
Commit Name: db7b74579181f9cbae3583f447d83148714a1c3d
Time: 2020-06-15
Author: horatio@gmail.com
File Name: stanza/models/classifiers/cnn_classifier.py
Class Name: CNNClassifier
Method Name: forward


Project Name: deepchem/deepchem
Commit Name: 97d7f88df32ae58875d7534c7c517905a3eb1341
Time: 2020-11-05
Author: mufeili1996@gmail.com
File Name: deepchem/models/torch_models/gat.py
Class Name: GAT
Method Name: forward