Skip to content

Commit e8c33cd

Browse files
authored
[CodeStyle][Typos][I-[12-14],I-[16-20]] Fix typos (indiates,indeces,inferrence,infering,imformation,infomation,informations,Infor,infor,inheritted,initilization) (#70650)
* fix * fix
1 parent 6b69d20 commit e8c33cd

File tree

26 files changed

+48
-56
lines changed

26 files changed

+48
-56
lines changed

_typos.toml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ extend-exclude = [
1212
[default]
1313
# Ignore 1-3 letter words, refer to https://github.com/crate-ci/typos/issues/1079
1414
extend-ignore-words-re = ["^[a-zA-Z]{1,3}$"]
15+
# refer to https://github.com/crate-ci/typos/blob/master/docs/reference.md#example-configurations
16+
extend-ignore-re = [
17+
# Ignore lines by `# typos: disable-line`
18+
"(?Rm)^.*(#|//)\\s*typos:\\s*disable-line$",
19+
# Ignore block by `# typos: off` and `# typos: on`
20+
"(?s)(#|//)\\s*typos:\\s*off.*?\\n\\s*(#|//)\\s*typos:\\s*on"
21+
]
1522

1623
[default.extend-words]
1724
# PaddlePaddle specific words
@@ -39,19 +46,8 @@ creater = 'creater'
3946
fetchs = 'fetchs'
4047
Indexs = 'Indexs'
4148
indexs = 'indexs'
42-
indiates = 'indiates'
43-
indeces = 'indeces'
44-
inferrence = 'inferrence'
4549
Infered = 'Infered'
4650
infered = 'infered'
47-
infering = 'infering'
48-
informations = 'informations'
49-
imformation = 'imformation'
50-
infomation = 'infomation'
51-
Infor = 'Infor'
52-
infor = 'infor'
53-
inheritted = 'inheritted'
54-
initilization = 'initilization'
5551
initilized = 'initilized'
5652
initalized = 'initalized'
5753
initalize = 'initalize'

paddle/cinn/hlir/dialect/operator/transforms/lowering_pass/utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ OpLoweringGroupPtr BuildOpLoweringGroup(pir::Operation* fusion_op_ptr) {
117117
if (FLAGS_cinn_enable_map_expr) {
118118
cinn::adt::TryGenerateMapExprFromGroup(group);
119119
}
120-
// Rebuild other informations
120+
// Rebuild other information
121121
// TODO(zhangyuqin1998): Do we need group.master_ops?
122122
return group;
123123
}

paddle/cinn/hlir/framework/pir/utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ std::string GetDebugInfo(const std::unordered_set<std::string>& names) {
9595
return debug_info;
9696
}
9797

98-
// OpTransInfo contains informations used to detect subgraphs
98+
// OpTransInfo contains information used to detect subgraphs
9999
// supported by the CINN compiler.
100100
class OpTransInfo {
101101
using DeParamCondT =

paddle/cinn/ir/ir.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ struct ForBase {
848848
BindInfo bind_info_;
849849
};
850850

851-
/// LLVM loop unroll metadata infomation
851+
/// LLVM loop unroll metadata information
852852
struct LLVMForLoopMeta {
853853
enum UnrollMode { DefaultUnroll, FullyUnroll, NoUnroll };
854854

paddle/cinn/poly/stage.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct StageForloopInfo {
5757
ir::DeviceAPI device;
5858
};
5959

60-
//! Store the informations about some other tensor `compute_at` this tensor.
60+
//! Store the information about some other tensor `compute_at` this tensor.
6161
struct ComputeAtInfo {
6262
ComputeAtInfo(const std::string& consumer_tensor_name,
6363
const std::string& producer_tensor_name,
@@ -84,7 +84,7 @@ struct ComputeAtInfo {
8484
};
8585

8686
/**
87-
* Meta infomation for tensor.
87+
* Meta information for tensor.
8888
*/
8989
struct TensorScheduleMeta {
9090
//! Store the information of all the other producer tensors `compute_at` this

paddle/fluid/distributed/ps/service/brpc_utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ std::string GetIntTypeEndpoint(const std::string& ip, const uint32_t& port) {
321321

322322
if (nullptr == hp) {
323323
LOG(ERROR) << "Brpc Start failed, ip_port= " << ip_port
324-
<< " , Error infomation: " << hstrerror(h_errno);
324+
<< " , Error information: " << hstrerror(h_errno);
325325
}
326326

327327
int i = 0;

paddle/fluid/eager/api/generated/eager_generated/backwards/scale_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "paddle/fluid/eager/tensor_wrapper.h"
1919

2020
/*
21-
Each Operation has a specific GradNode inheritted from GradNodeBase
21+
Each Operation has a specific GradNode inherited from GradNodeBase
2222
A specific GradNode defines
2323
1. Input Tensors
2424
2. overrides operator() to perform actual backward computations

paddle/fluid/framework/new_executor/interpreter/interpreter_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ void BuildOpFuncList(const phi::Place& place,
859859
op->Attr<bool>(kAllKernelsMustComputeRuntimeShape))) {
860860
RuntimeInferShapeContext infer_shape_ctx(*op, runtime_context);
861861
// TODO(Aurelius84): In case of control flow ops, they are NOT
862-
// inheritted from OperatorWithKernel.
862+
// inherited from OperatorWithKernel.
863863
op_with_kernel->Info().infer_shape_(&infer_shape_ctx);
864864
}
865865
}

paddle/fluid/inference/tensorrt/convert/emb_eltwise_layernorm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class EmbEltwiseLayerNormOpConverter : public OpConverter {
9292
output_fp16,
9393
1,
9494
common::errors::InvalidArgument(
95-
"Only Precision::KHalf(fp16) is supported when infering "
95+
"Only Precision::KHalf(fp16) is supported when inferring "
9696
"ernie(bert) model with config.EnableVarseqlen(). "
9797
"But Precision::KFloat32 is setted."));
9898

paddle/fluid/inference/tensorrt/convert/preln_emb_eltwise_layernorm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class PrelnEmbEltwiseLayerNormOpConverter : public OpConverter {
145145
output_fp16,
146146
1,
147147
common::errors::InvalidArgument(
148-
"Only Precision::KHalf(fp16) is supported when infering "
148+
"Only Precision::KHalf(fp16) is supported when inferring "
149149
"ernie(bert) model with config.EnableVarseqlen(). "
150150
"But Precision::KFloat32 is setted."));
151151

0 commit comments

Comments
 (0)