Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
Paddle
提交
805328e1
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看板
提交
805328e1
编写于
1月 16, 2020
作者:
Z
zhangchunle
提交者:
Tao Luo
1月 16, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix typo in error message (#22312)
上级
b339dff2
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
31 addition
and
30 deletion
+31
-30
paddle/fluid/operators/array_to_lod_tensor_op.cc
paddle/fluid/operators/array_to_lod_tensor_op.cc
+2
-2
paddle/fluid/operators/beam_search_decode_op.cc
paddle/fluid/operators/beam_search_decode_op.cc
+4
-4
paddle/fluid/operators/controlflow/compare_op.cc
paddle/fluid/operators/controlflow/compare_op.cc
+2
-2
paddle/fluid/operators/distributed_ops/merge_ids_op.cc
paddle/fluid/operators/distributed_ops/merge_ids_op.cc
+4
-4
paddle/fluid/operators/distributed_ops/split_ids_op.cc
paddle/fluid/operators/distributed_ops/split_ids_op.cc
+2
-2
paddle/fluid/operators/get_tensor_from_selected_rows_op.cc
paddle/fluid/operators/get_tensor_from_selected_rows_op.cc
+2
-2
paddle/fluid/operators/lod_rank_table_op.cc
paddle/fluid/operators/lod_rank_table_op.cc
+1
-1
paddle/fluid/operators/merge_lod_tensor_op.cc
paddle/fluid/operators/merge_lod_tensor_op.cc
+5
-5
paddle/fluid/operators/split_lod_tensor_op.cc
paddle/fluid/operators/split_lod_tensor_op.cc
+4
-4
paddle/fluid/operators/split_selected_rows_op.cc
paddle/fluid/operators/split_selected_rows_op.cc
+3
-2
python/paddle/fluid/backward.py
python/paddle/fluid/backward.py
+1
-1
python/paddle/fluid/evaluator.py
python/paddle/fluid/evaluator.py
+1
-1
未找到文件。
paddle/fluid/operators/array_to_lod_tensor_op.cc
浏览文件 @
805328e1
...
...
@@ -189,9 +189,9 @@ class ArrayToLoDTensorInferShape : public framework::InferShapeBase {
public:
void
operator
()(
framework
::
InferShapeContext
*
context
)
const
override
{
PADDLE_ENFORCE
(
context
->
HasInput
(
"X"
),
"ArrayToLoDTensorOp must ha
s
input X."
);
"ArrayToLoDTensorOp must ha
ve
input X."
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"RankTable"
),
"ArrayToLoDTensorOp must ha
s
input RankTable."
);
"ArrayToLoDTensorOp must ha
ve
input RankTable."
);
// For compile-time, the first dim of input X and output Out should be -1.
// For runtime, the first dim of output Out should be the sum of all
// elements's first dim in input X. The output's dims will be re-computed in
...
...
paddle/fluid/operators/beam_search_decode_op.cc
浏览文件 @
805328e1
...
...
@@ -191,13 +191,13 @@ class BeamSearchDecodeInferShape : public framework::InferShapeBase {
public:
void
operator
()(
framework
::
InferShapeContext
*
context
)
const
override
{
PADDLE_ENFORCE
(
context
->
HasInput
(
"Ids"
),
"BeamSearchDecodeOp must ha
s
input Ids"
);
"BeamSearchDecodeOp must ha
ve
input Ids"
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"Scores"
),
"BeamSearchDecodeOp must ha
s
input Scores"
);
"BeamSearchDecodeOp must ha
ve
input Scores"
);
PADDLE_ENFORCE
(
context
->
HasOutput
(
"SentenceIds"
),
"BeamSearchDecodeOp must ha
s
output SentenceIds"
);
"BeamSearchDecodeOp must ha
ve
output SentenceIds"
);
PADDLE_ENFORCE
(
context
->
HasOutput
(
"SentenceScores"
),
"BeamSearchDecodeOp must ha
s
output SentenceScores"
);
"BeamSearchDecodeOp must ha
ve
output SentenceScores"
);
}
};
...
...
paddle/fluid/operators/controlflow/compare_op.cc
浏览文件 @
805328e1
...
...
@@ -80,9 +80,9 @@ class CompareOp : public framework::OperatorWithKernel {
protected:
void
InferShape
(
framework
::
InferShapeContext
*
context
)
const
override
{
OpComment
comment
;
PADDLE_ENFORCE
(
context
->
HasInput
(
"X"
),
"%s operator must ha
s
input X"
,
PADDLE_ENFORCE
(
context
->
HasInput
(
"X"
),
"%s operator must ha
ve
input X"
,
comment
.
type
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"Y"
),
"%s operator must ha
s
input Y"
,
PADDLE_ENFORCE
(
context
->
HasInput
(
"Y"
),
"%s operator must ha
ve
input Y"
,
comment
.
type
);
auto
dim_x
=
context
->
GetInputDim
(
"X"
);
auto
dim_y
=
context
->
GetInputDim
(
"Y"
);
...
...
paddle/fluid/operators/distributed_ops/merge_ids_op.cc
浏览文件 @
805328e1
...
...
@@ -83,12 +83,12 @@ class MergeIdsOp : public framework::OperatorWithKernel {
void
InferShape
(
framework
::
InferShapeContext
*
ctx
)
const
override
{
PADDLE_ENFORCE
(
ctx
->
HasInputs
(
"Ids"
),
"MergeIdsOp must ha
s
multi input Ids."
);
"MergeIdsOp must ha
ve
multi input Ids."
);
PADDLE_ENFORCE
(
ctx
->
HasInputs
(
"Rows"
),
"MergeIdsOp must ha
s
multi input Rows."
);
PADDLE_ENFORCE
(
ctx
->
HasInputs
(
"X"
),
"MergeIdsOp must ha
s
multi input X."
);
"MergeIdsOp must ha
ve
multi input Rows."
);
PADDLE_ENFORCE
(
ctx
->
HasInputs
(
"X"
),
"MergeIdsOp must ha
ve
multi input X."
);
PADDLE_ENFORCE
(
ctx
->
HasOutputs
(
"Out"
),
"MergeIdsOp must ha
s
multi output Out."
);
"MergeIdsOp must ha
ve
multi output Out."
);
auto
ids_var_type
=
ctx
->
GetInputsVarType
(
"Ids"
).
front
();
auto
ids_dims
=
ctx
->
GetInputsDim
(
"Ids"
);
...
...
paddle/fluid/operators/distributed_ops/split_ids_op.cc
浏览文件 @
805328e1
...
...
@@ -52,8 +52,8 @@ class SplitIdsOp : public framework::OperatorWithKernel {
using
framework
::
OperatorWithKernel
::
OperatorWithKernel
;
void
InferShape
(
framework
::
InferShapeContext
*
ctx
)
const
override
{
PADDLE_ENFORCE
(
ctx
->
HasInputs
(
"Ids"
),
"SplitIdsOp must ha
s
input Ids."
);
PADDLE_ENFORCE
(
ctx
->
HasOutputs
(
"Out"
),
"SplitIdsOp must ha
s
output Out."
);
PADDLE_ENFORCE
(
ctx
->
HasInputs
(
"Ids"
),
"SplitIdsOp must ha
ve
input Ids."
);
PADDLE_ENFORCE
(
ctx
->
HasOutputs
(
"Out"
),
"SplitIdsOp must ha
ve
output Out."
);
auto
ids_var_type
=
ctx
->
GetInputsVarType
(
"Ids"
).
front
();
auto
ids_dims
=
ctx
->
GetInputsDim
(
"Ids"
);
...
...
paddle/fluid/operators/get_tensor_from_selected_rows_op.cc
浏览文件 @
805328e1
...
...
@@ -24,9 +24,9 @@ class GetTensorFromSelectedRowsOp : public framework::OperatorWithKernel {
void
InferShape
(
framework
::
InferShapeContext
*
ctx
)
const
override
{
PADDLE_ENFORCE
(
ctx
->
HasInput
(
"X"
),
"GetTensorFromSelectedRowsOp must ha
s
input X."
);
"GetTensorFromSelectedRowsOp must ha
ve
input X."
);
PADDLE_ENFORCE
(
ctx
->
HasOutput
(
"Out"
),
"GetTensorFromSelectedRowsOp must ha
s
output Out."
);
"GetTensorFromSelectedRowsOp must ha
ve
output Out."
);
PADDLE_ENFORCE
(
ctx
->
GetInputsVarType
(
"X"
).
front
()
==
framework
::
proto
::
VarType
::
SELECTED_ROWS
,
...
...
paddle/fluid/operators/lod_rank_table_op.cc
浏览文件 @
805328e1
...
...
@@ -58,7 +58,7 @@ output operators.
class
LoDRankTableInferShape
:
public
framework
::
InferShapeBase
{
public:
void
operator
()(
framework
::
InferShapeContext
*
context
)
const
override
{
PADDLE_ENFORCE
(
context
->
HasInput
(
"X"
),
"LoDRankTable must ha
s
input X"
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"X"
),
"LoDRankTable must ha
ve
input X"
);
}
};
...
...
paddle/fluid/operators/merge_lod_tensor_op.cc
浏览文件 @
805328e1
...
...
@@ -179,15 +179,15 @@ class MergeLoDTensorInferShape : public framework::InferShapeBase {
public:
void
operator
()(
framework
::
InferShapeContext
*
context
)
const
override
{
PADDLE_ENFORCE
(
context
->
HasInput
(
"X"
),
"MergeLoDTensorOp must ha
s
input X."
);
"MergeLoDTensorOp must ha
ve
input X."
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"Mask"
),
"MergeLoDTensorOp must ha
s
input Mask."
);
"MergeLoDTensorOp must ha
ve
input Mask."
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"InTrue"
),
"MergeLoDTensorOp must ha
s
input InTrue."
);
"MergeLoDTensorOp must ha
ve
input InTrue."
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"InFalse"
),
"MergeLoDTensorOp must ha
s
input InFalse."
);
"MergeLoDTensorOp must ha
ve
input InFalse."
);
PADDLE_ENFORCE
(
context
->
HasOutput
(
"Out"
),
"MergeLoDTensorOp must ha
s
output Out"
);
"MergeLoDTensorOp must ha
ve
output Out"
);
auto
mask_dim
=
context
->
GetInputDim
(
"Mask"
);
PADDLE_ENFORCE_EQ
(
mask_dim
.
size
(),
2
,
...
...
paddle/fluid/operators/split_lod_tensor_op.cc
浏览文件 @
805328e1
...
...
@@ -147,13 +147,13 @@ class SplitLoDTensorInferShape : public framework::InferShapeBase {
public:
void
operator
()(
framework
::
InferShapeContext
*
context
)
const
override
{
PADDLE_ENFORCE
(
context
->
HasInput
(
"X"
),
"SplitLoDTensorOp must ha
s
input X."
);
"SplitLoDTensorOp must ha
ve
input X."
);
PADDLE_ENFORCE
(
context
->
HasInput
(
"Mask"
),
"SplitLoDTensorOp must ha
s
input Mask."
);
"SplitLoDTensorOp must ha
ve
input Mask."
);
PADDLE_ENFORCE
(
context
->
HasOutput
(
"OutTrue"
),
"SplitLoDTensorOp must ha
s
output OutTrue."
);
"SplitLoDTensorOp must ha
ve
output OutTrue."
);
PADDLE_ENFORCE
(
context
->
HasOutput
(
"OutFalse"
),
"SplitLoDTensorOp must ha
s
output OutFalse."
);
"SplitLoDTensorOp must ha
ve
output OutFalse."
);
auto
mask_dim
=
context
->
GetInputDim
(
"Mask"
);
PADDLE_ENFORCE_EQ
(
mask_dim
.
size
(),
2
,
...
...
paddle/fluid/operators/split_selected_rows_op.cc
浏览文件 @
805328e1
...
...
@@ -54,9 +54,10 @@ class SplitSelectedRowsOp : public framework::OperatorWithKernel {
using
framework
::
OperatorWithKernel
::
OperatorWithKernel
;
void
InferShape
(
framework
::
InferShapeContext
*
ctx
)
const
override
{
PADDLE_ENFORCE
(
ctx
->
HasInput
(
"X"
),
"SplitSelectedRowsOp must has input X."
);
PADDLE_ENFORCE
(
ctx
->
HasInput
(
"X"
),
"SplitSelectedRowsOp must have input X."
);
PADDLE_ENFORCE
(
ctx
->
HasOutputs
(
"Out"
),
"SplitSelectedRowsOp must ha
s
output Out."
);
"SplitSelectedRowsOp must ha
ve
output Out."
);
}
};
...
...
python/paddle/fluid/backward.py
浏览文件 @
805328e1
...
...
@@ -1057,7 +1057,7 @@ def append_backward(loss,
be invoked once each time a
new gradient operator is added
into the program. The callable
object must ha
s
two input
object must ha
ve
two input
parameters: 'block' and 'context'.
The 'block' is the :ref:`api_guide_Block_en` which
the new gradient operator will
...
...
python/paddle/fluid/evaluator.py
浏览文件 @
805328e1
...
...
@@ -224,7 +224,7 @@ class EditDistance(Evaluator):
Args:
input: the sequences predicted by network.
label: the target sequences which must ha
s
same sequence count
label: the target sequences which must ha
ve
same sequence count
with input.
ignored_tokens(list of int): Tokens that should be removed before
calculating edit distance.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录