Small fix for type conversion.

This commit is contained in:
William Hamilton 2018-06-24 09:30:13 -04:00
parent 146406c2c0
commit d3105e5223

View File

@ -36,7 +36,7 @@ class Encoder(nn.Module):
nodes -- list of nodes nodes -- list of nodes
""" """
neigh_feats = self.aggregator.forward(nodes, [self.adj_lists[node] for node in nodes], neigh_feats = self.aggregator.forward(nodes, [self.adj_lists[int(node)] for node in nodes],
self.num_sample) self.num_sample)
if not self.gcn: if not self.gcn:
if self.cuda: if self.cuda: