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
714f2e1c
"docs/source/api/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "9e8261735f5f7234ab01c8d78eaf608b1871fefb"
Unverified
Commit
714f2e1c
authored
Jun 20, 2019
by
Quan (Andy) Gan
Committed by
GitHub
Jun 20, 2019
Browse files
fix node id dtype (#674)
parent
f8feee1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/rgcn/link_predict.py
examples/pytorch/rgcn/link_predict.py
+1
-1
No files found.
examples/pytorch/rgcn/link_predict.py
View file @
714f2e1c
...
@@ -148,7 +148,7 @@ def main(args):
...
@@ -148,7 +148,7 @@ def main(args):
print
(
"Done edge sampling"
)
print
(
"Done edge sampling"
)
# set node/edge feature
# set node/edge feature
node_id
=
torch
.
from_numpy
(
node_id
).
view
(
-
1
,
1
)
node_id
=
torch
.
from_numpy
(
node_id
).
view
(
-
1
,
1
)
.
long
()
edge_type
=
torch
.
from_numpy
(
edge_type
)
edge_type
=
torch
.
from_numpy
(
edge_type
)
node_norm
=
torch
.
from_numpy
(
node_norm
).
view
(
-
1
,
1
)
node_norm
=
torch
.
from_numpy
(
node_norm
).
view
(
-
1
,
1
)
data
,
labels
=
torch
.
from_numpy
(
data
),
torch
.
from_numpy
(
labels
)
data
,
labels
=
torch
.
from_numpy
(
data
),
torch
.
from_numpy
(
labels
)
...
...
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