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
nni
Commits
8490f7e4
Unverified
Commit
8490f7e4
authored
Mar 25, 2022
by
dutxubo
Committed by
GitHub
Mar 25, 2022
Browse files
[Fix] shuffle is set to True in train_loader of SinglePathTrainer (#4696)
parent
2f8524ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
nni/retiarii/oneshot/pytorch/random.py
nni/retiarii/oneshot/pytorch/random.py
+2
-1
No files found.
nni/retiarii/oneshot/pytorch/random.py
View file @
8490f7e4
...
@@ -143,7 +143,8 @@ class SinglePathTrainer(BaseOneShotTrainer):
...
@@ -143,7 +143,8 @@ class SinglePathTrainer(BaseOneShotTrainer):
self
.
train_loader
=
torch
.
utils
.
data
.
DataLoader
(
self
.
dataset_train
,
self
.
train_loader
=
torch
.
utils
.
data
.
DataLoader
(
self
.
dataset_train
,
batch_size
=
batch_size
,
batch_size
=
batch_size
,
num_workers
=
workers
)
num_workers
=
workers
,
shuffle
=
True
)
self
.
valid_loader
=
torch
.
utils
.
data
.
DataLoader
(
self
.
dataset_valid
,
self
.
valid_loader
=
torch
.
utils
.
data
.
DataLoader
(
self
.
dataset_valid
,
batch_size
=
batch_size
,
batch_size
=
batch_size
,
num_workers
=
workers
)
num_workers
=
workers
)
...
...
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