Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move DataLoader code to paddle.io #48699

Merged
merged 8 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python/paddle/distributed/auto_parallel/dist_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
import numpy as np

import paddle
from paddle.fluid.dataloader.batch_sampler import (
from paddle.io import BatchSampler, IterableDataset
from paddle.io.dataloader.batch_sampler import (
DistributedBatchSampler,
_InfiniteIterableSampler,
)
from paddle.fluid.dataloader.dataloader_iter import (
from paddle.io.dataloader.dataloader_iter import (
_DatasetKind,
default_collate_fn,
default_convert_fn,
)
from paddle.io import BatchSampler, IterableDataset


class DistributedDataLoaderBase(metaclass=abc.ABCMeta):
Expand Down Expand Up @@ -272,7 +272,7 @@ def __next__(self):
return next(self.data)

def _create_inner_dataloader(self):
dataloader = paddle.fluid.io.DataLoader(
dataloader = paddle.io.DataLoader(
self.dataset,
feed_list=self.feed_list,
places=self.places,
Expand Down
32 changes: 0 additions & 32 deletions python/paddle/fluid/dataloader/__init__.py

This file was deleted.

2 changes: 0 additions & 2 deletions python/paddle/fluid/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
from . import reader
from . import unique_name
from .reader import *
from . import dataloader
from .dataloader import *
from . import core
from paddle.utils import deprecated
from paddle.fluid.framework import static_only
Expand Down
Loading