Skip to content

Commit

Permalink
[Example] Fix core hetero-rgcn example API name. (#6201)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuzhi committed Aug 23, 2023
1 parent c3a043e commit 95221f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/core/rgcn/hetero_rgcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ def _apply(ntype, h):


class EntityClassify(nn.Module):
def __init__(self, g, in_size, out_dim):
def __init__(self, g, in_size, out_size):
super(EntityClassify, self).__init__()
self.in_size = in_size
self.hidden_size = 64
self.out_dim = out_dim
self.out_size = out_size

# Generate and sort a list of unique edge types from the input graph.
# eg. ['writes', 'cites']
Expand Down Expand Up @@ -314,7 +314,7 @@ def __init__(self, g, in_size, out_dim):
self.layers.append(
RelGraphConvLayer(
self.hidden_size,
self.out_dim,
self.out_size,
g.ntypes,
self.relation_names,
activation=None,
Expand Down

0 comments on commit 95221f0

Please sign in to comment.