Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
7a4cbb34
P
Paddle
项目概览
Crayon鑫
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
7a4cbb34
编写于
4月 25, 2021
作者:
Z
zhiboniu
提交者:
GitHub
4月 25, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update 2.0 public api in io&reader (#32022)
上级
3b4dcad7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
43 addition
and
29 deletion
+43
-29
python/paddle/io/__init__.py
python/paddle/io/__init__.py
+33
-22
python/paddle/reader/__init__.py
python/paddle/reader/__init__.py
+10
-2
python/paddle/reader/decorator.py
python/paddle/reader/decorator.py
+0
-5
未找到文件。
python/paddle/io/__init__.py
浏览文件 @
7a4cbb34
...
...
@@ -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'
]
python/paddle/reader/__init__.py
浏览文件 @
7a4cbb34
...
...
@@ -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__
=
[]
python/paddle/reader/decorator.py
浏览文件 @
7a4cbb34
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录