Skip to content

Commit

Permalink
[Model] Update GraphSAGE (#384)
Browse files Browse the repository at this point in the history
* [Feature] Small Changes

* [Feature] Update Graphsage
  • Loading branch information
QingFei1 authored Sep 2, 2022
1 parent 4c8737c commit c3d23bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cogdl/models/nn/graphsage.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def mini_forward(self, graph):
if i != self.num_layers - 1:
x = F.relu(x)
x = F.dropout(x, p=self.dropout, training=self.training)
self.adjlist.clear()
return x

def forward(self, *args):
Expand Down

0 comments on commit c3d23bb

Please sign in to comment.