Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
e7c5c9d2
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e7c5c9d2
编写于
12月 12, 2018
作者:
S
sneaxiy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unnecesary code
test=develop
上级
db2daefe
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
16 deletion
+2
-16
paddle/fluid/pybind/pybind.cc
paddle/fluid/pybind/pybind.cc
+0
-14
python/paddle/fluid/layers/nn.py
python/paddle/fluid/layers/nn.py
+1
-1
python/paddle/fluid/tests/unittests/test_py_func_op.py
python/paddle/fluid/tests/unittests/test_py_func_op.py
+1
-1
未找到文件。
paddle/fluid/pybind/pybind.cc
浏览文件 @
e7c5c9d2
...
@@ -572,20 +572,6 @@ All parameter, weight, gradient are variables in Paddle.
...
@@ -572,20 +572,6 @@ All parameter, weight, gradient are variables in Paddle.
py
::
class_
<
platform
::
Place
>
(
m
,
"Place"
)
py
::
class_
<
platform
::
Place
>
(
m
,
"Place"
)
.
def
(
py
::
init
<>
())
.
def
(
py
::
init
<>
())
.
def
(
"is_cpu_place"
,
[](
platform
::
Place
&
self
)
{
return
platform
::
is_cpu_place
(
self
);
})
.
def
(
"is_gpu_place"
,
[](
platform
::
Place
&
self
)
{
return
platform
::
is_gpu_place
(
self
);
})
.
def
(
"is_cuda_pinned_place"
,
[](
platform
::
Place
&
self
)
{
return
platform
::
is_cuda_pinned_place
(
self
);
})
.
def
(
"gpu_device_id"
,
[](
platform
::
Place
&
self
)
{
PADDLE_ENFORCE
(
platform
::
is_gpu_place
(
self
),
"gpu_device_id() only supports in CUDAPlace"
);
return
boost
::
get
<
platform
::
CUDAPlace
>
(
self
).
device
;
})
.
def
(
"set_place"
,
.
def
(
"set_place"
,
[](
platform
::
Place
&
self
,
const
platform
::
CPUPlace
&
cpu_place
)
{
[](
platform
::
Place
&
self
,
const
platform
::
CPUPlace
&
cpu_place
)
{
self
=
cpu_place
;
self
=
cpu_place
;
...
...
python/paddle/fluid/layers/nn.py
浏览文件 @
e7c5c9d2
...
@@ -23,7 +23,7 @@ import os
...
@@ -23,7 +23,7 @@ import os
import
inspect
import
inspect
from
..layer_helper
import
LayerHelper
from
..layer_helper
import
LayerHelper
from
..initializer
import
Normal
,
Constant
from
..initializer
import
Normal
,
Constant
from
..framework
import
Variable
,
OpProtoHolder
,
Program
from
..framework
import
Variable
,
OpProtoHolder
from
..param_attr
import
ParamAttr
from
..param_attr
import
ParamAttr
from
.layer_function_generator
import
autodoc
,
templatedoc
,
_generate_doc_string_
from
.layer_function_generator
import
autodoc
,
templatedoc
,
_generate_doc_string_
from
.tensor
import
concat
from
.tensor
import
concat
...
...
python/paddle/fluid/tests/unittests/test_py_func_op.py
浏览文件 @
e7c5c9d2
...
@@ -59,7 +59,7 @@ def simple_fc_net(img, label, use_py_func_op):
...
@@ -59,7 +59,7 @@ def simple_fc_net(img, label, use_py_func_op):
size
=
200
,
size
=
200
,
bias_attr
=
fluid
.
ParamAttr
(
bias_attr
=
fluid
.
ParamAttr
(
initializer
=
fluid
.
initializer
.
Constant
(
value
=
1.0
)))
initializer
=
fluid
.
initializer
.
Constant
(
value
=
1.0
)))
if
use_py_func_op
:
if
not
use_py_func_op
:
hidden
=
fluid
.
layers
.
tanh
(
hidden
)
hidden
=
fluid
.
layers
.
tanh
(
hidden
)
else
:
else
:
new_hidden
=
fluid
.
default_main_program
().
current_block
(
new_hidden
=
fluid
.
default_main_program
().
current_block
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录