Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
28937581
P
Paddle
项目概览
机器未来
/
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看板
未验证
提交
28937581
编写于
10月 10, 2019
作者:
C
chengjuntao
提交者:
GitHub
10月 10, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix fluid.data code example and cherry pick to 1.6, test=release/1.6, test=document_fix (#20362)
上级
8fb0635c
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
45 addition
and
49 deletion
+45
-49
paddle/fluid/API.spec
paddle/fluid/API.spec
+1
-1
python/paddle/fluid/layers/nn.py
python/paddle/fluid/layers/nn.py
+44
-48
未找到文件。
paddle/fluid/API.spec
浏览文件 @
28937581
...
@@ -305,7 +305,7 @@ paddle.fluid.layers.where (ArgSpec(args=['condition'], varargs=None, keywords=No
...
@@ -305,7 +305,7 @@ paddle.fluid.layers.where (ArgSpec(args=['condition'], varargs=None, keywords=No
paddle.fluid.layers.sign (ArgSpec(args=['x'], varargs=None, keywords=None, defaults=None), ('document', 'fa2f457a81714430c5677c2d68744728'))
paddle.fluid.layers.sign (ArgSpec(args=['x'], varargs=None, keywords=None, defaults=None), ('document', 'fa2f457a81714430c5677c2d68744728'))
paddle.fluid.layers.deformable_conv (ArgSpec(args=['input', 'offset', 'mask', 'num_filters', 'filter_size', 'stride', 'padding', 'dilation', 'groups', 'deformable_groups', 'im2col_step', 'param_attr', 'bias_attr', 'modulated', 'name'], varargs=None, keywords=None, defaults=(1, 0, 1, None, None, None, None, None, True, None)), ('document', '335193ac57d41d7199f8d26d30c069b1'))
paddle.fluid.layers.deformable_conv (ArgSpec(args=['input', 'offset', 'mask', 'num_filters', 'filter_size', 'stride', 'padding', 'dilation', 'groups', 'deformable_groups', 'im2col_step', 'param_attr', 'bias_attr', 'modulated', 'name'], varargs=None, keywords=None, defaults=(1, 0, 1, None, None, None, None, None, True, None)), ('document', '335193ac57d41d7199f8d26d30c069b1'))
paddle.fluid.layers.unfold (ArgSpec(args=['x', 'kernel_sizes', 'strides', 'paddings', 'dilations', 'name'], varargs=None, keywords=None, defaults=(1, 0, 1, None)), ('document', '3f884662ad443d9ecc2b3734b4f61ad6'))
paddle.fluid.layers.unfold (ArgSpec(args=['x', 'kernel_sizes', 'strides', 'paddings', 'dilations', 'name'], varargs=None, keywords=None, defaults=(1, 0, 1, None)), ('document', '3f884662ad443d9ecc2b3734b4f61ad6'))
paddle.fluid.layers.deformable_roi_pooling (ArgSpec(args=['input', 'rois', 'trans', 'no_trans', 'spatial_scale', 'group_size', 'pooled_height', 'pooled_width', 'part_size', 'sample_per_part', 'trans_std', 'position_sensitive', 'name'], varargs=None, keywords=None, defaults=(False, 1.0, [1, 1], 1, 1, None, 1, 0.1, False, None)), ('document', '
47c5d1c890b36fa00ff3285c9398f613
'))
paddle.fluid.layers.deformable_roi_pooling (ArgSpec(args=['input', 'rois', 'trans', 'no_trans', 'spatial_scale', 'group_size', 'pooled_height', 'pooled_width', 'part_size', 'sample_per_part', 'trans_std', 'position_sensitive', 'name'], varargs=None, keywords=None, defaults=(False, 1.0, [1, 1], 1, 1, None, 1, 0.1, False, None)), ('document', '
e0e7bf35da2287efb015546f1b8350df
'))
paddle.fluid.layers.filter_by_instag (ArgSpec(args=['ins', 'ins_tag', 'filter_tag', 'is_lod'], varargs=None, keywords=None, defaults=None), ('document', '7703a2088af8de4128b143ff1164ca4a'))
paddle.fluid.layers.filter_by_instag (ArgSpec(args=['ins', 'ins_tag', 'filter_tag', 'is_lod'], varargs=None, keywords=None, defaults=None), ('document', '7703a2088af8de4128b143ff1164ca4a'))
paddle.fluid.layers.shard_index (ArgSpec(args=['input', 'index_num', 'nshards', 'shard_id', 'ignore_value'], varargs=None, keywords=None, defaults=(-1,)), ('document', '3c6b30e9cd57b38d4a5fa1ade887f779'))
paddle.fluid.layers.shard_index (ArgSpec(args=['input', 'index_num', 'nshards', 'shard_id', 'ignore_value'], varargs=None, keywords=None, defaults=(-1,)), ('document', '3c6b30e9cd57b38d4a5fa1ade887f779'))
paddle.fluid.layers.hard_swish (ArgSpec(args=['x', 'threshold', 'scale', 'offset', 'name'], varargs=None, keywords=None, defaults=(6.0, 6.0, 3.0, None)), ('document', '6a5152a7015c62cb8278fc24cb456459'))
paddle.fluid.layers.hard_swish (ArgSpec(args=['x', 'threshold', 'scale', 'offset', 'name'], varargs=None, keywords=None, defaults=(6.0, 6.0, 3.0, None)), ('document', '6a5152a7015c62cb8278fc24cb456459'))
...
...
python/paddle/fluid/layers/nn.py
浏览文件 @
28937581
...
@@ -15619,57 +15619,53 @@ def deformable_roi_pooling(input,
...
@@ -15619,57 +15619,53 @@ def deformable_roi_pooling(input,
# position_sensitive=True
# position_sensitive=True
import paddle.fluid as fluid
import paddle.fluid as fluid
input = fluid.layers.data(name="input",
input = fluid.data(name="input",
shape=[2, 192, 64, 64],
shape=[2, 192, 64, 64],
dtype='float32',
dtype='float32')
append_batch_size=False)
rois = fluid.data(name="rois",
rois = fluid.layers.data(name="rois",
shape=[-1, 4],
shape=[4],
dtype='float32',
dtype='float32',
lod_level=1)
lod_level=1)
trans = fluid.data(name="trans",
trans = fluid.layers.data(name="trans",
shape=[2, 384, 64, 64],
shape=[2, 384, 64, 64],
dtype='float32')
dtype='float32',
x = fluid.layers.deformable_roi_pooling(input=input,
append_batch_size=False)
rois=rois,
x = fluid.layers.nn.deformable_roi_pooling(input=input,
trans=trans,
rois=rois,
no_trans=False,
trans=trans,
spatial_scale=1.0,
no_trans=False,
group_size=(1, 1),
spatial_scale=1.0,
pooled_height=8,
group_size=(1, 1),
pooled_width=8,
pooled_height=8,
part_size=(8, 8),
pooled_width=8,
sample_per_part=4,
part_size=(8, 8),
trans_std=0.1,
sample_per_part=4,
position_sensitive=True)
trans_std=0.1,
position_sensitive=True)
# position_sensitive=False
# position_sensitive=False
import paddle.fluid as fluid
import paddle.fluid as fluid
input = fluid.layers.data(name="input",
input = fluid.data(name="input",
shape=[2, 192, 64, 64],
shape=[2, 192, 64, 64],
dtype='float32',
dtype='float32')
append_batch_size=False)
rois = fluid.data(name="rois",
rois = fluid.layers.data(name="rois",
shape=[-1, 4],
shape=[4],
dtype='float32',
dtype='float32',
lod_level=1)
lod_level=1)
trans = fluid.data(name="trans",
trans = fluid.layers.data(name="trans",
shape=[2, 384, 64, 64],
shape=[2, 384, 64, 64],
dtype='float32')
dtype='float32',
x = fluid.layers.deformable_roi_pooling(input=input,
append_batch_size=False)
rois=rois,
x = fluid.layers.nn.deformable_roi_pooling(input=input,
trans=trans,
rois=rois,
no_trans=False,
trans=trans,
spatial_scale=1.0,
no_trans=False,
group_size=(1, 1),
spatial_scale=1.0,
pooled_height=8,
group_size=(1, 1),
pooled_width=8,
pooled_height=8,
part_size=(8, 8),
pooled_width=8,
sample_per_part=4,
part_size=(8, 8),
trans_std=0.1,
sample_per_part=4,
position_sensitive=False)
trans_std=0.1,
position_sensitive=False)
"""
"""
input_channels = input.shape[1]
input_channels = input.shape[1]
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录