Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db03884

Browse files
authored
add SamplerWrapper to init (pytorch#1360)
1 parent 7fa74e4 commit db03884

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torchdata/nodes/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
from .adapters import IterableWrapper, MapStyleWrapper
7+
from .adapters import IterableWrapper, MapStyleWrapper, SamplerWrapper
88
from .base_node import BaseNode, T
99
from .batch import Batcher
1010
from .loader import Loader
@@ -25,6 +25,7 @@
2525
"ParallelMapper",
2626
"PinMemory",
2727
"Prefetcher",
28+
"SamplerWrapper",
2829
"Stateful",
2930
"T",
3031
]

0 commit comments

Comments
 (0)