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
0b902d03
Unverified
Commit
0b902d03
authored
May 18, 2020
by
Quan (Andy) Gan
Committed by
GitHub
May 18, 2020
Browse files
[Bug][Model] Bugfix in PinSAGE code (#1533)
parent
7b6af87a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/pytorch/pinsage/sampler.py
examples/pytorch/pinsage/sampler.py
+3
-1
No files found.
examples/pytorch/pinsage/sampler.py
View file @
0b902d03
...
@@ -6,7 +6,9 @@ from torch.utils.data import IterableDataset, DataLoader
...
@@ -6,7 +6,9 @@ from torch.utils.data import IterableDataset, DataLoader
def
compact_and_copy
(
frontier
,
seeds
):
def
compact_and_copy
(
frontier
,
seeds
):
block
=
dgl
.
to_block
(
frontier
,
seeds
)
block
=
dgl
.
to_block
(
frontier
,
seeds
)
for
col
,
data
in
frontier
.
edata
.
items
():
for
col
,
data
in
frontier
.
edata
.
items
():
block
.
edata
[
col
]
=
data
if
col
==
dgl
.
EID
:
continue
block
.
edata
[
col
]
=
data
[
block
.
edata
[
dgl
.
EID
]]
return
block
return
block
class
ItemToItemBatchSampler
(
IterableDataset
):
class
ItemToItemBatchSampler
(
IterableDataset
):
...
...
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