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
367a3a34
"tests/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "55d49d4379007740af20629bb61aba9546c6b053"
Unverified
Commit
367a3a34
authored
Sep 22, 2021
by
Junwen Yao
Committed by
GitHub
Sep 23, 2021
Browse files
Fix torch import in example (#3372)
parent
a04a8d06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/pytorch/graphsage/train_cv_multi_gpu.py
examples/pytorch/graphsage/train_cv_multi_gpu.py
+1
-1
No files found.
examples/pytorch/graphsage/train_cv_multi_gpu.py
View file @
367a3a34
...
@@ -239,7 +239,7 @@ def run(proc_id, n_gpus, args, devices, data):
...
@@ -239,7 +239,7 @@ def run(proc_id, n_gpus, args, devices, data):
# Create PyTorch DataLoader for constructing blocks
# Create PyTorch DataLoader for constructing blocks
if
n_gpus
>
1
:
if
n_gpus
>
1
:
dist_sampler
=
t
orc
h
.
utils
.
data
.
distributed
.
DistributedSampler
(
train_nid
.
numpy
(),
shuffle
=
True
,
drop_last
=
False
)
dist_sampler
=
th
.
utils
.
data
.
distributed
.
DistributedSampler
(
train_nid
.
numpy
(),
shuffle
=
True
,
drop_last
=
False
)
dataloader
=
DataLoader
(
dataloader
=
DataLoader
(
dataset
=
train_nid
.
numpy
(),
dataset
=
train_nid
.
numpy
(),
batch_size
=
args
.
batch_size
,
batch_size
=
args
.
batch_size
,
...
...
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