Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
s920243400
PaddleDetection
提交
f6f9fd7a
P
PaddleDetection
项目概览
s920243400
/
PaddleDetection
与 Fork 源项目一致
Fork自
PaddlePaddle / PaddleDetection
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f6f9fd7a
编写于
3月 20, 2017
作者:
L
Luo Tao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unnecessary param in degradeSequence
上级
a7730d40
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
7 deletion
+6
-7
paddle/gserver/layers/SequencePoolLayer.cpp
paddle/gserver/layers/SequencePoolLayer.cpp
+4
-5
paddle/parameter/Argument.cpp
paddle/parameter/Argument.cpp
+1
-1
paddle/parameter/Argument.h
paddle/parameter/Argument.h
+1
-1
未找到文件。
paddle/gserver/layers/SequencePoolLayer.cpp
浏览文件 @
f6f9fd7a
...
@@ -56,17 +56,16 @@ void SequencePoolLayer::forward(PassType passType) {
...
@@ -56,17 +56,16 @@ void SequencePoolLayer::forward(PassType passType) {
CHECK_EQ
(
newBatchSize_
,
starts
->
getSize
()
-
1
);
CHECK_EQ
(
newBatchSize_
,
starts
->
getSize
()
-
1
);
resetOutput
(
newBatchSize_
,
dim
);
resetOutput
(
newBatchSize_
,
dim
);
if
(
type_
)
{
CHECK
(
input
.
subSequenceStartPositions
)
<<
"when trans_type = seq, input must hasSubseq"
;
}
/* If type_ = kNonSeq, both seq has or not has sub-seq degrade to a non-seq,
/* If type_ = kNonSeq, both seq has or not has sub-seq degrade to a non-seq,
* thus, in this case, output_ has no sequenceStartPositions.
* thus, in this case, output_ has no sequenceStartPositions.
* If type_ = kSeq, seq has sub-seq degrades to a seq, thus, only in this
* If type_ = kSeq, seq has sub-seq degrades to a seq, thus, only in this
* case, we should compute the new sequenceStartPositions.
* case, we should compute the new sequenceStartPositions.
*/
*/
if
(
type_
)
{
if
(
type_
)
{
output_
.
degradeSequence
(
input
,
useGpu_
);
CHECK
(
input
.
subSequenceStartPositions
)
<<
"when trans_type = seq, input must hasSubseq"
;
output_
.
degradeSequence
(
input
);
}
}
}
}
...
...
paddle/parameter/Argument.cpp
浏览文件 @
f6f9fd7a
...
@@ -583,7 +583,7 @@ void Argument::checkSubset() const {
...
@@ -583,7 +583,7 @@ void Argument::checkSubset() const {
}
}
}
}
void
Argument
::
degradeSequence
(
const
Argument
&
input
,
bool
useGpu
)
{
void
Argument
::
degradeSequence
(
const
Argument
&
input
)
{
CHECK_EQ
(
input
.
hasSubseq
(),
1UL
);
CHECK_EQ
(
input
.
hasSubseq
(),
1UL
);
size_t
numSequences
=
input
.
getNumSequences
();
size_t
numSequences
=
input
.
getNumSequences
();
size_t
numSubSequences
=
input
.
getNumSubSequences
();
size_t
numSubSequences
=
input
.
getNumSubSequences
();
...
...
paddle/parameter/Argument.h
浏览文件 @
f6f9fd7a
...
@@ -296,7 +296,7 @@ struct Argument {
...
@@ -296,7 +296,7 @@ struct Argument {
/*
/*
sequence has sub-sequence degrades to a sequence.
sequence has sub-sequence degrades to a sequence.
*/
*/
void
degradeSequence
(
const
Argument
&
input
,
bool
useGpu
);
void
degradeSequence
(
const
Argument
&
input
);
/**
/**
* @brief getValueString will return the argument's output in string. There
* @brief getValueString will return the argument's output in string. There
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录