in utils.py [0:0]
def forward(self, g, inputs):
"""
Run forward propagation step of instantiated model.
Input:
self: GCN_dev instance
g: DGL graph object, i.e. problem definition
inputs: Input (embedding) layer weights, to be propagated through network
Output:
h: Output layer weights
"""
# input step
h = self.conv1(g, inputs)
h = torch.relu(h)
h = F.dropout(h, p=self.dropout_frac)
# output step
h = self.conv2(g, h)
h = torch.sigmoid(h)
return h