in utils.py [0:0]
def __init__(self, in_feats, hidden_size, number_classes, dropout, device):
"""
Initialize a new instance of the core GCN model of provided size.
Dropout is added in forward step.
Inputs:
in_feats: Dimension of the input (embedding) layer
hidden_size: Hidden layer size
dropout: Fraction of dropout to add between intermediate layer. Value is cached for later use.
device: Specifies device (CPU vs GPU) to load variables onto
"""
super(GCN_dev, self).__init__()
self.dropout_frac = dropout
self.conv1 = GraphConv(in_feats, hidden_size).to(device)
self.conv2 = GraphConv(hidden_size, number_classes).to(device)