Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Crayon鑫
Paddle
提交
e0d5f8a8
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看板
提交
e0d5f8a8
编写于
8月 14, 2018
作者:
M
minqiyang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move compat module to python/paddle
上级
7e0f66e9
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
19 addition
and
19 deletion
+19
-19
paddle/fluid/pybind/protobuf.cc
paddle/fluid/pybind/protobuf.cc
+1
-2
python/paddle/__init__.py
python/paddle/__init__.py
+1
-0
python/paddle/compat.py
python/paddle/compat.py
+0
-0
python/paddle/dataset/conll05.py
python/paddle/dataset/conll05.py
+1
-1
python/paddle/dataset/movielens.py
python/paddle/dataset/movielens.py
+1
-1
python/paddle/dataset/wmt14.py
python/paddle/dataset/wmt14.py
+1
-1
python/paddle/dataset/wmt16.py
python/paddle/dataset/wmt16.py
+1
-1
python/paddle/fluid/backward.py
python/paddle/fluid/backward.py
+1
-1
python/paddle/fluid/framework.py
python/paddle/fluid/framework.py
+1
-1
python/paddle/fluid/layers/detection.py
python/paddle/fluid/layers/detection.py
+1
-1
python/paddle/fluid/parallel_executor.py
python/paddle/fluid/parallel_executor.py
+1
-1
python/paddle/fluid/tests/unittests/test_compat.py
python/paddle/fluid/tests/unittests/test_compat.py
+1
-1
python/paddle/fluid/tests/unittests/test_dist_base.py
python/paddle/fluid/tests/unittests/test_dist_base.py
+1
-1
python/paddle/fluid/tests/unittests/test_exception.py
python/paddle/fluid/tests/unittests/test_exception.py
+1
-1
python/paddle/fluid/tests/unittests/test_lookup_table_op.py
python/paddle/fluid/tests/unittests/test_lookup_table_op.py
+1
-1
python/paddle/fluid/tests/unittests/test_operator_desc.py
python/paddle/fluid/tests/unittests/test_operator_desc.py
+1
-1
python/paddle/fluid/tests/unittests/test_protobuf_descs.py
python/paddle/fluid/tests/unittests/test_protobuf_descs.py
+1
-1
python/paddle/fluid/tests/unittests/test_roi_pool_op.py
python/paddle/fluid/tests/unittests/test_roi_pool_op.py
+1
-1
python/paddle/fluid/transpiler/memory_optimization_transpiler.py
...paddle/fluid/transpiler/memory_optimization_transpiler.py
+1
-1
python/paddle/reader/decorator.py
python/paddle/reader/decorator.py
+1
-1
未找到文件。
paddle/fluid/pybind/protobuf.cc
浏览文件 @
e0d5f8a8
...
...
@@ -205,8 +205,7 @@ void BindBlockDesc(pybind11::module *m) {
void
BindVarDsec
(
pybind11
::
module
*
m
)
{
pybind11
::
class_
<
pd
::
VarDesc
>
var_desc
(
*
m
,
"VarDesc"
,
""
);
var_desc
.
def
(
"name"
,
[](
pd
::
VarDesc
&
self
)
{
return
self
.
Name
();
},
pybind11
::
return_value_policy
::
reference
)
.
def
(
"name"
,
&
pd
::
VarDesc
::
Name
,
pybind11
::
return_value_policy
::
reference
)
.
def
(
"set_name"
,
&
pd
::
VarDesc
::
SetName
)
.
def
(
"set_shape"
,
&
pd
::
VarDesc
::
SetShape
)
.
def
(
"set_shapes"
,
&
pd
::
VarDesc
::
SetShapes
)
...
...
python/paddle/__init__.py
浏览文件 @
e0d5f8a8
...
...
@@ -24,4 +24,5 @@ except ImportError:
import
paddle.reader
import
paddle.dataset
import
paddle.batch
import
paddle.compat
batch
=
batch
.
batch
python/paddle/
fluid/
compat.py
→
python/paddle/compat.py
浏览文件 @
e0d5f8a8
文件已移动
python/paddle/dataset/conll05.py
浏览文件 @
e0d5f8a8
...
...
@@ -24,7 +24,7 @@ import tarfile
import
gzip
import
itertools
import
paddle.dataset.common
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
from
six.moves
import
zip
,
range
__all__
=
[
'test, get_dict'
,
'get_embedding'
,
'convert'
]
...
...
python/paddle/dataset/movielens.py
浏览文件 @
e0d5f8a8
...
...
@@ -28,7 +28,7 @@ import re
import
random
import
functools
import
six
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
__all__
=
[
'train'
,
'test'
,
'get_movie_title_dict'
,
'max_movie_id'
,
'max_user_id'
,
...
...
python/paddle/dataset/wmt14.py
浏览文件 @
e0d5f8a8
...
...
@@ -24,7 +24,7 @@ import tarfile
import
gzip
import
paddle.dataset.common
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
__all__
=
[
'train'
,
...
...
python/paddle/dataset/wmt16.py
浏览文件 @
e0d5f8a8
...
...
@@ -35,7 +35,7 @@ import gzip
from
collections
import
defaultdict
import
paddle.dataset.common
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
__all__
=
[
"train"
,
...
...
python/paddle/fluid/backward.py
浏览文件 @
e0d5f8a8
...
...
@@ -17,7 +17,7 @@ from . import core
import
collections
import
copy
import
six
from
.
import
compat
as
cpt
from
.
.
import
compat
as
cpt
from
.
import
unique_name
__all__
=
[
'append_backward'
]
...
...
python/paddle/fluid/framework.py
浏览文件 @
e0d5f8a8
...
...
@@ -19,7 +19,7 @@ import six
import
numpy
as
np
from
.
import
compat
as
cpt
from
.
.
import
compat
as
cpt
from
.proto
import
framework_pb2
try
:
from
.
import
core
...
...
python/paddle/fluid/layers/detection.py
浏览文件 @
e0d5f8a8
...
...
@@ -20,7 +20,7 @@ from .layer_function_generator import autodoc, templatedoc
from
..layer_helper
import
LayerHelper
from
.
import
tensor
from
.
import
nn
from
..
import
compat
as
cpt
from
..
.
import
compat
as
cpt
import
math
import
six
from
functools
import
reduce
...
...
python/paddle/fluid/parallel_executor.py
浏览文件 @
e0d5f8a8
...
...
@@ -17,7 +17,7 @@ import multiprocessing
from
.
import
core
from
.
import
framework
from
.
import
executor
from
.
import
compat
as
cpt
from
.
.
import
compat
as
cpt
import
warnings
import
sys
import
six
...
...
python/paddle/fluid/tests/unittests/test_compat.py
浏览文件 @
e0d5f8a8
...
...
@@ -13,7 +13,7 @@
# limitations under the License.
import
unittest
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
import
six
...
...
python/paddle/fluid/tests/unittests/test_dist_base.py
浏览文件 @
e0d5f8a8
...
...
@@ -124,7 +124,7 @@ def runtime_main(test_class):
model
.
run_trainer
(
p
,
endpoints
,
trainer_id
,
trainers
,
is_dist
)
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
class
TestDistBase
(
unittest
.
TestCase
):
...
...
python/paddle/fluid/tests/unittests/test_exception.py
浏览文件 @
e0d5f8a8
...
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
import
paddle.fluid.core
as
core
import
unittest
...
...
python/paddle/fluid/tests/unittests/test_lookup_table_op.py
浏览文件 @
e0d5f8a8
...
...
@@ -17,7 +17,7 @@ import numpy as np
from
op_test
import
OpTest
import
paddle.fluid.core
as
core
from
paddle.fluid.op
import
Operator
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
class
TestLookupTableOp
(
OpTest
):
...
...
python/paddle/fluid/tests/unittests/test_operator_desc.py
浏览文件 @
e0d5f8a8
...
...
@@ -15,7 +15,7 @@
import
unittest
import
paddle.fluid.core
as
core
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
from
paddle.fluid.framework
import
Program
,
default_startup_program
...
...
python/paddle/fluid/tests/unittests/test_protobuf_descs.py
浏览文件 @
e0d5f8a8
...
...
@@ -14,7 +14,7 @@
import
unittest
import
paddle.fluid.core
as
core
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
from
paddle.fluid.framework
import
Program
...
...
python/paddle/fluid/tests/unittests/test_roi_pool_op.py
浏览文件 @
e0d5f8a8
...
...
@@ -16,7 +16,7 @@ import unittest
import
numpy
as
np
import
math
import
sys
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
from
op_test
import
OpTest
...
...
python/paddle/fluid/transpiler/memory_optimization_transpiler.py
浏览文件 @
e0d5f8a8
...
...
@@ -14,7 +14,7 @@
from
collections
import
defaultdict
from
..
import
core
from
..
import
compat
as
cpt
from
..
.
import
compat
as
cpt
from
..framework
import
Program
,
default_main_program
,
Parameter
from
..backward
import
_rename_arg_
from
functools
import
reduce
...
...
python/paddle/reader/decorator.py
浏览文件 @
e0d5f8a8
...
...
@@ -27,7 +27,7 @@ from six.moves import zip
import
itertools
import
random
import
zlib
import
paddle.
fluid.
compat
as
cpt
import
paddle.compat
as
cpt
def
map_readers
(
func
,
*
readers
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录