Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
efcff3d9
P
Paddle
项目概览
BaiXuePrincess
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
efcff3d9
编写于
6月 08, 2018
作者:
Y
yi.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
polish api ref docs
上级
5be454bf
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
32 addition
and
14 deletion
+32
-14
doc/fluid/api/layers.rst
doc/fluid/api/layers.rst
+6
-0
paddle/fluid/operators/detection/iou_similarity_op.cc
paddle/fluid/operators/detection/iou_similarity_op.cc
+4
-3
paddle/fluid/operators/roi_pool_op.cc
paddle/fluid/operators/roi_pool_op.cc
+1
-0
python/paddle/fluid/layers/io.py
python/paddle/fluid/layers/io.py
+2
-2
python/paddle/fluid/layers/nn.py
python/paddle/fluid/layers/nn.py
+19
-9
未找到文件。
doc/fluid/api/layers.rst
浏览文件 @
efcff3d9
...
...
@@ -790,6 +790,12 @@ shape
.. autofunction:: paddle.fluid.layers.shape
:noindex:
iou_similarity
-----
.. autofunction:: paddle.fluid.layers.iou_similarity
:noindex:
sigmoid
-------
...
...
paddle/fluid/operators/detection/iou_similarity_op.cc
浏览文件 @
efcff3d9
...
...
@@ -69,10 +69,11 @@ class IOUSimilarityOpMaker : public framework::OpProtoAndCheckerMaker {
AddComment
(
R"DOC(
IOU Similarity Operator.
Computes intersection-over-union (IOU) between two box lists.
Box list 'X' should be a LoDTensor and 'Y' is a common Tensor,
boxes in 'Y' are shared by all instance of the batched inputs of X.
Given two boxes A and B, the calculation of IOU is as follows:
Box list 'X' should be a LoDTensor and 'Y' is a common Tensor,
boxes in 'Y' are shared by all instance of the batched inputs of X.
Given two boxes A and B, the calculation of IOU is as follows:
$$
IOU(A, B) =
...
...
paddle/fluid/operators/roi_pool_op.cc
浏览文件 @
efcff3d9
...
...
@@ -146,6 +146,7 @@ is to perform max pooling on inputs of nonuniform sizes to obtain
fixed-size feature maps (e.g. 7*7).
The operator has three steps:
1. Dividing each region proposal into equal-sized sections with
the pooled_width and pooled_height
2. Finding the largest value in each section
...
...
python/paddle/fluid/layers/io.py
浏览文件 @
efcff3d9
...
...
@@ -135,8 +135,8 @@ class ListenAndServ(object):
fluid.initializer.Constant(value=1.0)(x, main.global_block())
layers.scale(x=x, scale=10.0, out=out_var)
self.server_
exe = fluid.Executor(place)
self.server_
exe.run(main)
exe = fluid.Executor(place)
exe.run(main)
"""
def
__init__
(
self
,
endpoint
,
inputs
,
fan_in
=
1
,
optimizer_mode
=
True
):
...
...
python/paddle/fluid/layers/nn.py
浏览文件 @
efcff3d9
...
...
@@ -850,7 +850,9 @@ def crf_decoding(input, param_attr, label=None):
Args:
input(${emission_type}): ${emission_comment}
param_attr(ParamAttr): The parameter attribute for training.
label(${label_type}): ${label_comment}
Returns:
...
...
@@ -875,8 +877,8 @@ def cos_sim(X, Y):
${comment}
Args:
X(${
X_type}): ${X
_comment}
Y(${
Y_type}): ${Y
_comment}
X(${
x_type}): ${x
_comment}
Y(${
y_type}): ${x
_comment}
Returns:
A Variable contains the output of this layer.
...
...
@@ -1076,13 +1078,18 @@ def chunk_eval(input,
${comment}
Args:
input(Variable): ${Inference_comment}
label(Variable): ${Label_comment}
input(Variable): ${inference_comment}
label(Variable): ${label_comment}
chunk_scheme(${chunk_scheme_type}): ${chunk_scheme_comment}
num_chunk_types(${num_chunk_types_type}): ${num_chunk_types_comment}
excluded_chunk_types(${excluded_chunk_types_type}): ${excluded_chunk_types_comment}
Returns(typle): a tuple of variables:
Returns:
chunk_eval(tuple): a tuple of variables:
(precision, recall, f1_score, num_infer_chunks, num_label_chunks, num_correct_chunks)
"""
...
...
@@ -1755,7 +1762,6 @@ def beam_search_decode(ids, scores, name=None):
return
sentence_ids
,
sentence_scores
@
templatedoc
()
def
conv2d_transpose
(
input
,
num_filters
,
output_size
=
None
,
...
...
@@ -3893,14 +3899,18 @@ def roi_pool(input, rois, pooled_height=1, pooled_width=1, spatial_scale=1.0):
${comment}
Args:
input (Variable): ${X_comment}
rois (Variable): ${ROIs_comment}
input (Variable): ${x_comment}
rois (Variable): ROIs (Regions of Interest) to pool over.
pooled_height (integer): ${pooled_height_comment} Default: 1
pooled_width (integer): ${pooled_width_comment} Default: 1
spatial_scale (float): ${spatial_scale_comment} Default: 1.0
Returns:
pool_out (Variable): ${O
ut_comment}.
roi_pool (Variable): ${o
ut_comment}.
Examples:
.. code-block:: python
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录