Skip to content

Commit 5fa77c9

Browse files
committed
fix typos
1 parent 2531861 commit 5fa77c9

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

paddle/fluid/framework/ir/layer_norm_fuse_pass.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ bool validateReduceOpAttrs(const Node* node,
7272
}
7373
for (size_t i = 1; i < dims.size(); ++i) {
7474
if (1 != dims[i] - dims[i - 1]) {
75-
LOG(WARNING) << "The LayerNorm dim of mean must be continuous";
75+
LOG(WARNING) << "The LayerNorm dim of mean must be continuous";
7676
return false;
7777
}
7878
}

paddle/fluid/framework/ir/preln_residual_bias_fuse_pass.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ int PrelnResidualBiasFusePass::ApplyPattern(ir::Graph *graph,
217217
// elementwise1_out. This will lead to two or more PrelnResidualBias
218218
// patterns is found near elementwise1_out, and these patterns will interact
219219
// on each other, so we make below check to ensure only one
220-
// PrelnResidualBias pattern is delalted with.
220+
// PrelnResidualBias pattern is dealt with.
221221
for (auto op : elementwise1_out->inputs) {
222222
if (op->Name() == "fused_bias_dropout_residual_layer_norm") return;
223223
}

paddle/fluid/framework/ir/preln_skip_layernorm_fuse_pass.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ void PrelnSkipLayerNormFusePass::ApplyImpl(ir::Graph *graph) const {
117117
"use_varseqlen, preln_embedding_eltwise_layernorm_fuse_pass, "
118118
"trt_multihead_matmul_fuse_pass, "
119119
"set pos_id, set mask_id, with_dynamic_shape. Stop this pass, "
120-
"please "
121-
"reconfig.";
120+
"please reconfig.";
122121
return;
123122
}
124123
int found_subgraph_count = 0;

paddle/fluid/framework/ir/seq_concat_fc_fuse_pass.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ PDNode* BuildSeqExpandConcatPattern(PDPattern* pattern) {
3737
// concat output
3838

3939
// So the following variables will be removed:
40-
// sequence-expand output
41-
// sequence-expand output
40+
// sequence_expand output
41+
// sequence_expand output
4242

4343
// Three operators
4444
auto* sequence_expand0 = pattern->NewNode(

0 commit comments

Comments
 (0)