未验证 提交 7a4cbb34 编写于 作者: Z zhiboniu 提交者: GitHub

update 2.0 public api in io&reader (#32022)

上级 3b4dcad7
......@@ -13,26 +13,37 @@
# limitations under the License.
# TODO: define all functions about input & output in this directory
__all__ = [
'Dataset',
'IterableDataset',
'TensorDataset',
'ComposeDataset',
'ChainDataset',
'BatchSampler',
'DistributedBatchSampler',
# 'Transform',
'DataLoader',
'get_worker_info',
'Sampler',
'SequenceSampler',
'RandomSampler',
'WeightedRandomSampler',
'random_split',
'Subset'
]
from ..fluid.io import DataLoader
from ..fluid.dataloader import Dataset, IterableDataset, BatchSampler, get_worker_info, \
TensorDataset, Sampler, SequenceSampler, RandomSampler, DistributedBatchSampler, \
ComposeDataset, ChainDataset, WeightedRandomSampler, Subset, random_split
from ..fluid.io import DataLoader # noqa: F401
from ..fluid.dataloader import Dataset # noqa: F401
from ..fluid.dataloader import IterableDataset # noqa: F401
from ..fluid.dataloader import BatchSampler # noqa: F401
from ..fluid.dataloader import get_worker_info # noqa: F401
from ..fluid.dataloader import TensorDataset # noqa: F401
from ..fluid.dataloader import Sampler # noqa: F401
from ..fluid.dataloader import SequenceSampler # noqa: F401
from ..fluid.dataloader import RandomSampler # noqa: F401
from ..fluid.dataloader import DistributedBatchSampler # noqa: F401
from ..fluid.dataloader import ComposeDataset # noqa: F401
from ..fluid.dataloader import ChainDataset # noqa: F401
from ..fluid.dataloader import WeightedRandomSampler # noqa: F401
from ..fluid.dataloader import Subset # noqa: F401
from ..fluid.dataloader import random_split # noqa: F401
__all__ = [ #noqa
'Dataset',
'IterableDataset',
'TensorDataset',
'ComposeDataset',
'ChainDataset',
'BatchSampler',
'DistributedBatchSampler',
'DataLoader',
'get_worker_info',
'Sampler',
'SequenceSampler',
'RandomSampler',
'WeightedRandomSampler',
'random_split',
'Subset'
]
......@@ -63,7 +63,15 @@ An example implementation for multiple item data reader creator:
"""
import paddle.reader.decorator
from paddle.reader.decorator import *
from paddle.reader.decorator import map_readers # noqa: F401
from paddle.reader.decorator import shuffle # noqa: F401
from paddle.reader.decorator import xmap_readers # noqa: F401
from paddle.reader.decorator import firstn # noqa: F401
from paddle.reader.decorator import buffered # noqa: F401
from paddle.reader.decorator import compose # noqa: F401
from paddle.reader.decorator import cache # noqa: F401
from paddle.reader.decorator import ComposeNotAligned # noqa: F401
from paddle.reader.decorator import chain # noqa: F401
from paddle.reader.decorator import multiprocess_reader # noqa: F401
__all__ = []
......@@ -12,11 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
__all__ = [
'cache', 'map_readers', 'buffered', 'compose', 'chain', 'shuffle',
'ComposeNotAligned', 'firstn', 'xmap_readers', 'multiprocess_reader'
]
from threading import Thread
import subprocess
import multiprocessing
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册