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
vision
Commits
aa211974
Unverified
Commit
aa211974
authored
Mar 29, 2022
by
Philip Meier
Committed by
GitHub
Mar 29, 2022
Browse files
update hint_shuffling (#5693)
* update hint_shuffling * trigger CI
parent
f1172393
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
torchvision/prototype/datasets/utils/_internal.py
torchvision/prototype/datasets/utils/_internal.py
+2
-1
No files found.
torchvision/prototype/datasets/utils/_internal.py
View file @
aa211974
...
...
@@ -34,6 +34,7 @@ __all__ = [
"path_comparator"
,
"read_flo"
,
"hint_sharding"
,
"hint_shuffling"
,
]
K
=
TypeVar
(
"K"
)
...
...
@@ -196,4 +197,4 @@ def hint_sharding(datapipe: IterDataPipe) -> ShardingFilter:
def
hint_shuffling
(
datapipe
:
IterDataPipe
[
D
])
->
Shuffler
[
D
]:
return
Shuffler
(
datapipe
,
default
=
False
,
buffer_size
=
INFINITE_BUFFER_SIZE
)
return
Shuffler
(
datapipe
,
buffer_size
=
INFINITE_BUFFER_SIZE
)
.
set_shuffle
(
False
)
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