Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
18f2ea66
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看板
未验证
提交
18f2ea66
编写于
9月 22, 2020
作者:
K
Kaipeng Deng
提交者:
GitHub
9月 22, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove paddle.readers API (#26727)
* remove paddle.readers API. test=develop
上级
f4c750d7
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
12 addition
and
25 deletion
+12
-25
python/paddle/__init__.py
python/paddle/__init__.py
+0
-1
python/paddle/dataset/flowers.py
python/paddle/dataset/flowers.py
+1
-1
python/paddle/fluid/io.py
python/paddle/fluid/io.py
+3
-3
python/paddle/fluid/tests/unittests/test_decoupled_py_reader_data_check.py
...id/tests/unittests/test_decoupled_py_reader_data_check.py
+1
-1
python/paddle/fluid/tests/unittests/test_imperative_star_gan_with_gradient_penalty.py
...ittests/test_imperative_star_gan_with_gradient_penalty.py
+1
-1
python/paddle/fluid/tests/unittests/test_multiprocess_reader_exception.py
...uid/tests/unittests/test_multiprocess_reader_exception.py
+2
-1
python/paddle/fluid/tests/unittests/test_py_reader_combination.py
...addle/fluid/tests/unittests/test_py_reader_combination.py
+3
-2
python/paddle/io/__init__.py
python/paddle/io/__init__.py
+0
-10
python/paddle/reader/__init__.py
python/paddle/reader/__init__.py
+1
-1
python/paddle/tensor/__init__.py
python/paddle/tensor/__init__.py
+0
-1
python/paddle/tensor/random.py
python/paddle/tensor/random.py
+0
-3
未找到文件。
python/paddle/__init__.py
浏览文件 @
18f2ea66
...
...
@@ -204,7 +204,6 @@ from .tensor.math import prod #DEFINE_ALIAS
from
.tensor.random
import
standard_normal
from
.tensor.random
import
normal
from
.tensor.random
import
uniform
#DEFINE_ALIAS
from
.tensor.random
import
shuffle
#DEFINE_ALIAS
from
.tensor.random
import
randn
#DEFINE_ALIAS
from
.tensor.random
import
rand
#DEFINE_ALIAS
from
.tensor.random
import
randint
#DEFINE_ALIAS
...
...
python/paddle/dataset/flowers.py
浏览文件 @
18f2ea66
...
...
@@ -37,7 +37,7 @@ from .common import download
import
tarfile
import
scipy.io
as
scio
from
paddle.dataset.image
import
*
from
paddle.reader
import
*
from
paddle.reader
import
map_readers
,
xmap_readers
from
paddle
import
compat
as
cpt
import
os
import
numpy
as
np
...
...
python/paddle/fluid/io.py
浏览文件 @
18f2ea66
...
...
@@ -26,13 +26,13 @@ from functools import reduce
import
numpy
as
np
import
paddle
import
paddle.reader
from
paddle.reader
import
*
from
paddle.fluid
import
layers
from
paddle.fluid.executor
import
Executor
,
global_scope
from
paddle.fluid.evaluator
import
Evaluator
from
paddle.fluid.framework
import
Program
,
Parameter
,
default_main_program
,
default_startup_program
,
Variable
,
\
program_guard
,
dygraph_not_support
from
paddle.reader
import
cache
,
map_readers
,
buffered
,
compose
,
chain
,
shuffle
,
\
ComposeNotAligned
,
firstn
,
xmap_readers
,
multiprocess_reader
from
.wrapped_decorator
import
signature_safe_contextmanager
from
paddle.fluid.compiler
import
CompiledProgram
from
paddle.fluid.log_helper
import
get_logger
...
...
@@ -62,7 +62,7 @@ __all__ = [
'set_program_state'
,
'get_program_parameter'
,
'get_program_persistable_vars'
,
]
+
reader
.
__all__
+
paddle
.
reader
.
__all__
]
+
reader
.
__all__
_logger
=
get_logger
(
__name__
,
logging
.
INFO
,
fmt
=
'%(asctime)s-%(levelname)s: %(message)s'
)
...
...
python/paddle/fluid/tests/unittests/test_decoupled_py_reader_data_check.py
浏览文件 @
18f2ea66
...
...
@@ -37,7 +37,7 @@ class TestClass(unittest.TestCase):
low
=
0
,
high
=
9
,
size
=
label_shape
).
astype
(
'int64'
)
yield
img
,
label
reader
=
fluid
.
io
.
cache
(
fake_reader
)
reader
=
paddle
.
reader
.
cache
(
fake_reader
)
batch_reader
=
fluid
.
io
.
batch
(
reader
,
batch_size
=
batch_size
)
places
=
[
fluid
.
CPUPlace
()]
...
...
python/paddle/fluid/tests/unittests/test_imperative_star_gan_with_gradient_penalty.py
浏览文件 @
18f2ea66
...
...
@@ -592,7 +592,7 @@ class TestStarGANWithGradientPenalty(unittest.TestCase):
cfg
=
Config
(
place
)
dataset
=
create_mnist_dataset
(
cfg
)
dataset
=
fluid
.
io
.
cache
(
dataset
)
dataset
=
paddle
.
reader
.
cache
(
dataset
)
static_graph_model
=
StaticGraphTrainModel
(
cfg
)
static_loss
=
[]
...
...
python/paddle/fluid/tests/unittests/test_multiprocess_reader_exception.py
浏览文件 @
18f2ea66
...
...
@@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
paddle
import
paddle.fluid
as
fluid
from
paddle.
fluid.io
import
multiprocess_reader
from
paddle.
reader
import
multiprocess_reader
import
unittest
import
numpy
as
np
import
six
...
...
python/paddle/fluid/tests/unittests/test_py_reader_combination.py
浏览文件 @
18f2ea66
...
...
@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
paddle
import
paddle.fluid
as
fluid
import
unittest
import
numpy
as
np
...
...
@@ -60,8 +61,8 @@ class TestPyReaderCombination(unittest.TestCase):
py_reader2
=
fluid
.
io
.
PyReader
(
feed_list
=
[
image
,
label
],
capacity
=
16
,
iterable
=
True
)
reader1
=
fluid
.
io
.
cache
(
self
.
create_reader
(
self
.
n1
))
reader2
=
fluid
.
io
.
cache
(
self
.
create_reader
(
self
.
n2
))
reader1
=
paddle
.
reader
.
cache
(
self
.
create_reader
(
self
.
n1
))
reader2
=
paddle
.
reader
.
cache
(
self
.
create_reader
(
self
.
n2
))
py_reader1
.
decorate_batch_generator
(
reader1
,
places
=
place
)
py_reader2
.
decorate_batch_generator
(
reader2
,
places
=
place
)
...
...
python/paddle/io/__init__.py
浏览文件 @
18f2ea66
...
...
@@ -31,15 +31,6 @@ __all__ = [
'set_program_state'
,
'load_inference_model'
,
'save_inference_model'
,
'batch'
,
'shuffle'
,
'buffered'
,
'cache'
,
'chain'
,
'firstn'
,
'compose'
,
'map_readers'
,
'xmap_readers'
]
from
..fluid.io
import
DataLoader
...
...
@@ -47,4 +38,3 @@ from ..fluid.dataloader import Dataset, IterableDataset, BatchSampler, get_worke
TensorDataset
,
Sampler
,
SequenceSampler
,
RandomSampler
,
DistributedBatchSampler
from
..fluid.io
import
load
,
save
,
load_program_state
,
set_program_state
,
\
load_inference_model
,
save_inference_model
,
batch
from
..reader
import
shuffle
,
buffered
,
cache
,
chain
,
firstn
,
compose
,
map_readers
,
xmap_readers
python/paddle/reader/__init__.py
浏览文件 @
18f2ea66
...
...
@@ -66,4 +66,4 @@ An example implementation for multiple item data reader creator:
import
paddle.reader.decorator
from
paddle.reader.decorator
import
*
__all__
=
decorator
.
__all__
__all__
=
[]
python/paddle/tensor/__init__.py
浏览文件 @
18f2ea66
...
...
@@ -171,7 +171,6 @@ from .math import prod #DEFINE_ALIAS
from
.random
import
standard_normal
from
.random
import
normal
from
.random
import
uniform
#DEFINE_ALIAS
from
.random
import
shuffle
#DEFINE_ALIAS
from
.random
import
randn
#DEFINE_ALIAS
from
.random
import
rand
#DEFINE_ALIAS
from
.random
import
randint
#DEFINE_ALIAS
...
...
python/paddle/tensor/random.py
浏览文件 @
18f2ea66
...
...
@@ -21,14 +21,11 @@ from ..fluid.data_feeder import check_variable_and_dtype, check_type, check_dtyp
from
..fluid.layers
import
utils
import
paddle
from
..fluid.io
import
shuffle
#DEFINE_ALIAS
__all__
=
[
'bernoulli'
,
'standard_normal'
,
'normal'
,
'uniform'
,
'shuffle'
,
'randn'
,
'rand'
,
'randint'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录