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
a6abffe3
Unverified
Commit
a6abffe3
authored
Jan 24, 2021
by
nv-dlasalle
Committed by
GitHub
Jan 24, 2021
Browse files
[Fix] Don't create extra formats in dataloader (#2551)
Co-authored-by:
Minjie Wang
<
wmjlyjemaine@gmail.com
>
parent
2288098b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
python/dgl/dataloading/dataloader.py
python/dgl/dataloading/dataloader.py
+0
-2
No files found.
python/dgl/dataloading/dataloader.py
View file @
a6abffe3
...
@@ -251,8 +251,6 @@ class BlockSampler(object):
...
@@ -251,8 +251,6 @@ class BlockSampler(object):
seed_nodes
=
{
ntype
:
block
.
srcnodes
[
ntype
].
data
[
NID
]
for
ntype
in
block
.
srctypes
}
seed_nodes
=
{
ntype
:
block
.
srcnodes
[
ntype
].
data
[
NID
]
for
ntype
in
block
.
srctypes
}
# Pre-generate CSR format so that it can be used in training directly
block
.
create_formats_
()
blocks
.
insert
(
0
,
block
)
blocks
.
insert
(
0
,
block
)
return
blocks
return
blocks
...
...
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