Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
95221f01
Unverified
Commit
95221f01
authored
Aug 23, 2023
by
xiangyuzhi
Committed by
GitHub
Aug 23, 2023
Browse files
[Example] Fix core hetero-rgcn example API name. (#6201)
parent
c3a043eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/core/rgcn/hetero_rgcn.py
examples/core/rgcn/hetero_rgcn.py
+3
-3
No files found.
examples/core/rgcn/hetero_rgcn.py
View file @
95221f01
...
@@ -282,11 +282,11 @@ class RelGraphConvLayer(nn.Module):
...
@@ -282,11 +282,11 @@ class RelGraphConvLayer(nn.Module):
class
EntityClassify
(
nn
.
Module
):
class
EntityClassify
(
nn
.
Module
):
def
__init__
(
self
,
g
,
in_size
,
out_
dim
):
def
__init__
(
self
,
g
,
in_size
,
out_
size
):
super
(
EntityClassify
,
self
).
__init__
()
super
(
EntityClassify
,
self
).
__init__
()
self
.
in_size
=
in_size
self
.
in_size
=
in_size
self
.
hidden_size
=
64
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.
# Generate and sort a list of unique edge types from the input graph.
# eg. ['writes', 'cites']
# eg. ['writes', 'cites']
...
@@ -314,7 +314,7 @@ class EntityClassify(nn.Module):
...
@@ -314,7 +314,7 @@ class EntityClassify(nn.Module):
self
.
layers
.
append
(
self
.
layers
.
append
(
RelGraphConvLayer
(
RelGraphConvLayer
(
self
.
hidden_size
,
self
.
hidden_size
,
self
.
out_
dim
,
self
.
out_
size
,
g
.
ntypes
,
g
.
ntypes
,
self
.
relation_names
,
self
.
relation_names
,
activation
=
None
,
activation
=
None
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment